Skip to content

Pin GitHub Actions to SHA checksums - #322

Merged
renner merged 2 commits into
masterfrom
pin-action-shas
Mar 31, 2026
Merged

renner merged 2 commits into
masterfrom
pin-action-shas

Conversation

@renner

@renner renner commented Mar 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Pin all GitHub Actions references to their full SHA checksums to prevent supply chain attacks via tag
manipulation, and update actions to latest versions where available.

Actions pinned and updated

Action Previous Current SHA
actions/checkout v4 v6.0.2 de0fac2e
actions/setup-java v4 v5.2.0 be666c2f
tj-actions/branch-names v8 v9.0.2 52504926
peaceiris/actions-gh-pages v4 v4.0.0 4f9cc660
marvinpinto/action-automatic-releases latest v1.2.1 919008cf

Version comments are included inline for easy identification during future updates.

Note: All SHA checksums were verified manually against their corresponding release tags.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Pins all third-party GitHub Actions used in the Maven workflow to immutable commit SHAs to reduce supply-chain risk from mutable tags.

Changes:

  • Replaced version tags (e.g., @v4, @v8) with full commit SHAs for all referenced actions.
  • Replaced @latest usage with a pinned SHA for marvinpinto/action-automatic-releases.
  • Added inline comments indicating the corresponding action release version for easier future updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- actions/checkout v4.3.1 → v6.0.2
- actions/setup-java v4.8.0 → v5.2.0
- tj-actions/branch-names v8.2.1 → v9.0.2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@renner
renner requested a review from szachovy March 31, 2026 09:23

@szachovy szachovy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@renner
renner merged commit f9f013d into master Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants