Skip to content

ci: pin GitHub Actions to commit SHAs - #1

Open
AlexaDeWit wants to merge 3 commits into
masterfrom
platform-eng/pin-github-actions
Open

ci: pin GitHub Actions to commit SHAs#1
AlexaDeWit wants to merge 3 commits into
masterfrom
platform-eng/pin-github-actions

Conversation

@AlexaDeWit

Copy link
Copy Markdown

Description

Pin all GitHub Actions in this repository to immutable commit SHAs.
Actions pinned to mutable tags or branch refs (e.g. @v4, @main) are vulnerable
to supply chain attacks — if an upstream maintainer's account is compromised, the tag
can be silently moved to a malicious commit and the next workflow run will execute it.

Dependabot is configured (or updated) in this PR to keep the pinned SHAs current
automatically, so this is a one-time migration with no ongoing manual maintenance.

Action Was Now
Homebrew/actions/setup-homebrew @master @98cfa07b...
actions/checkout @v2 @ee0669bd...
ilammy/msvc-dev-cmd @v1 @0b201ec7...

Reference

This PR was generated by the Platform Engineering pin-actions tool as part of the
organisation-wide GitHub Actions supply chain hardening initiative (DO-1616).

Notes for reviewers

Ownership note: this PR was opened automatically on behalf of the team.
The author is a platform tooling script — merging is the responsibility of the
repository's code owners, not the platform team. Please review the pins and merge
at your convenience. Reach out to #platform-eng with any questions.

Each uses: line has been updated from owner/repo@tag to owner/repo@sha # tag.
The tag is preserved as an inline comment so the intent remains human-readable.
No workflow logic has been changed.

Validation

SHA resolution was performed at PR creation time via the GitHub API
(GET /repos/{owner}/{repo}/commits/{ref}). Each SHA corresponds to the commit
the tag pointed to at that moment. Dependabot will keep them up to date going forward.

Part of Platform Engineering supply chain security hardening.
Dependabot will keep these SHAs current automatically.
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.

1 participant