[ci] Update GitHub Actions to latest major/pinned release#3272
Conversation
Fixes most deprecation warnings that Node20.js will stop working in June.
📝 WalkthroughWalkthroughGitHub Actions versions are updated across six CI/CD workflows: Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
|
@gruenich - There are merge conflicts. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/gradle-wrapper-validation.yml:
- Line 10: Update the GitHub Actions step that references the Gradle wrapper
validation action by changing the pinned version from
gradle/actions/wrapper-validation@v2 to the current major release
gradle/actions/wrapper-validation@v6 (e.g., v6.1.0) so the workflow uses the
latest supported major version; locate the step in the workflow that contains
the action identifier "gradle/actions/wrapper-validation@v2" and replace the
version tag accordingly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 4a61bcb7-beb4-42e0-aa90-646e8ef1b7c2
📒 Files selected for processing (6)
.github/workflows/gradle-wrapper-validation.yml.github/workflows/label-commenter.yml.github/workflows/publish-maven-central.yml.github/workflows/publish-snapshot.yml.github/workflows/test.yml.github/workflows/update-gradle-wrapper.yml
| - uses: actions/checkout@v4 | ||
| - uses: gradle/actions/wrapper-validation@v5 | ||
| - uses: actions/checkout@v6 | ||
| - uses: gradle/actions/wrapper-validation@v2 |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Latest gradle/actions release tag:"
curl -fsSL https://api.github.com/repos/gradle/actions/releases/latest \
| sed -n 's/.*"tag_name": "\(v[^"]*\)".*/\1/p' | head -n1
echo
echo "Official wrapper-validation doc usage:"
curl -fsSL https://raw.githubusercontent.com/gradle/actions/main/docs/wrapper-validation.md \
| grep -n 'uses: gradle/actions/wrapper-validation@v' | head -n3Repository: testng-team/testng
Length of output: 244
Upgrade wrapper-validation to the current major version on Line 10.
The action is pinned to @v2, but the current major is @v6 (v6.1.0), as confirmed by the official Gradle documentation and latest releases. Keeping the older version defeats the PR's goal of using current versions and risks deprecated runtime behavior.
Suggested fix
- - uses: gradle/actions/wrapper-validation@v2
+ - uses: gradle/actions/wrapper-validation@v6🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/workflows/gradle-wrapper-validation.yml at line 10, Update the
GitHub Actions step that references the Gradle wrapper validation action by
changing the pinned version from gradle/actions/wrapper-validation@v2 to the
current major release gradle/actions/wrapper-validation@v6 (e.g., v6.1.0) so the
workflow uses the latest supported major version; locate the step in the
workflow that contains the action identifier
"gradle/actions/wrapper-validation@v2" and replace the version tag accordingly.
|
I made a mistake in my last pull request. I am going to fix it |
juherr
left a comment
There was a problem hiding this comment.
Upgrade wrapper action to latest too
|
Replaced by #3273 |
Fixes most deprecation warnings that Node20.js will stop working in June.
Summary by CodeRabbit