Skip to content

Pin GitHub Actions to Apache-approved commit hashes#171

Merged
jamesfredley merged 1 commit into4.0.xfrom
pin-workflow-actions-to-approved-hashes
Mar 31, 2026
Merged

Pin GitHub Actions to Apache-approved commit hashes#171
jamesfredley merged 1 commit into4.0.xfrom
pin-workflow-actions-to-approved-hashes

Conversation

@jamesfredley
Copy link
Copy Markdown
Contributor

Summary

Changes

Workflow Action Before After
gradle.yml (2x) gradle/actions/setup-gradle @v4 @07231958... (v5.0.2)
rat.yml gradle/actions/setup-gradle @v4 @07231958... (v5.0.2)
release.yml (3x) gradle/actions/setup-gradle @v5 @07231958... (v5.0.2)
release-notes.yml release-drafter/release-drafter @v6 @6a93d829... (v6.4.0)
release.yml (3x) softprops/action-gh-release @v2 @153bb8e0... (v2.6.1)

All gradle/actions/setup-gradle references 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.

Copilot AI review requested due to automatic review settings March 31, 2026 17:13
@jamesfredley jamesfredley self-assigned this Mar 31, 2026
@jamesfredley jamesfredley requested a review from jdaugherty March 31, 2026 17:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-gradle usages to a specific commit (v5.0.2) across workflows.
  • Pin softprops/action-gh-release to a specific commit (v2.6.1) in the release workflow.
  • Pin release-drafter/release-drafter to 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>
@jamesfredley jamesfredley force-pushed the pin-workflow-actions-to-approved-hashes branch from 1bc7c48 to 69e88a2 Compare March 31, 2026 17:33
@matrei matrei self-requested a review March 31, 2026 18:21
@jamesfredley jamesfredley merged commit b6f4f7b into 4.0.x Mar 31, 2026
5 checks passed
@jamesfredley jamesfredley deleted the pin-workflow-actions-to-approved-hashes branch March 31, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants