Pin GitHub Actions to Apache-approved commit hashes#171
Merged
jamesfredley merged 1 commit into4.0.xfrom Mar 31, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Pins third-party GitHub Actions to Apache-approved commit SHAs to improve supply-chain security and compliance.
Changes:
- Pin
gradle/actions/setup-gradleusages to a specific commit (v5.0.2) across workflows. - Pin
softprops/action-gh-releaseto a specific commit (v2.6.1) in the release workflow. - Pin
release-drafter/release-drafterto a specific commit (v6.4.0) in the release-notes workflow.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/release.yml | Pins setup-gradle and action-gh-release to commit SHAs for release pipeline hardening. |
| .github/workflows/release-notes.yml | Pins release-drafter to a commit SHA for supply-chain compliance. |
| .github/workflows/rat.yml | Pins setup-gradle to a commit SHA for compliance in RAT workflow. |
| .github/workflows/gradle.yml | Pins setup-gradle to a commit SHA for compliance in CI workflows. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replace version tags with pinned commit hashes from apache/infrastructure-actions approved_patterns.yml for supply chain security compliance. - gradle/actions/setup-gradle -> @07231958 (v5.0.2) in gradle.yml, rat.yml, release.yml - release-drafter/release-drafter@v6 -> @6a93d829 (v6.4.0) in release-notes.yml - softprops/action-gh-release@v2 -> @153bb8e0 (v2.6.1) in release.yml Assisted-by: Claude Code <Claude@Claude.ai>
1bc7c48 to
69e88a2
Compare
matrei
approved these changes
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
gradle.yml(2x)gradle/actions/setup-gradle@v4@07231958...(v5.0.2)rat.ymlgradle/actions/setup-gradle@v4@07231958...(v5.0.2)release.yml(3x)gradle/actions/setup-gradle@v5@07231958...(v5.0.2)release-notes.ymlrelease-drafter/release-drafter@v6@6a93d829...(v6.4.0)release.yml(3x)softprops/action-gh-release@v2@153bb8e0...(v2.6.1)All
gradle/actions/setup-gradlereferences are standardized on v5.0.2. GitHub first-party actions (actions/checkout,actions/setup-java,actions/upload-artifact) and Apache's own actions (apache/grails-github-actions/*) remain on version/branch tags.