Pin GitHub Actions to full-length commit SHAs#88
Merged
Conversation
Replace mutable major-version tags on external actions with verified full-length commit SHAs from official upstream repositories to mitigate supply-chain risk. Each pin stays within the same major version, so workflow behavior is preserved. - actions/checkout@v4 -> 34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - biomejs/setup-biome@v2 -> 4c91541eaada48f67d7dbd7833600ce162b68f51 # v2.7.1 (annotated tag, peeled commit) - actions/setup-node@v4 -> 49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 - actions/upload-artifact@v4 -> ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Context: https://pspdfkit.slack.com/archives/C03LUSTQYTF/p1780907940938109?thread_ts=1780905830.180029&cid=C03LUSTQYTF
Summary
Remediates GitHub Actions supply-chain risk by replacing mutable major-version tags on external actions with verified full-length commit SHAs resolved from each action's official upstream repository.
Each pin stays within the same major version that was previously floating, so no major-version upgrade occurs and workflow behavior is preserved.
Actions pinned
actions/checkout@v434e114876b0b11c390a56381ad16ebd13914f8d5v4.3.1biomejs/setup-biome@v24c91541eaada48f67d7dbd7833600ce162b68f51v2.7.1actions/setup-node@v449933ea5288caeca8642d1e84afbd3f7d6820020v4.4.0actions/upload-artifact@v4ea165f8d65b6e75b540449e92b4886f43607fa02v4.6.2Files changed
.github/workflows/biome.yml—actions/checkout,biomejs/setup-biome.github/workflows/playwright.yml—actions/checkout,actions/setup-node,actions/upload-artifactactions/checkoutappeared in both workflows and was pinned to the same SHA in each.Verification
Tags/SHAs resolved via
git ls-remote --tags https://github.com/<owner>/<repo>.gitagainst the official upstream repositories. Thesetup-biometag is annotated, so the peeledrefs/tags/v2.7.1^{}commit was pinned rather than the tag-object SHA.🤖 Generated with Claude Code