Skip to content

chore: pin all action references to commit SHAs#299

Merged
furukama merged 1 commit intomainfrom
chore/pin-action-shas
Apr 13, 2026
Merged

chore: pin all action references to commit SHAs#299
furukama merged 1 commit intomainfrom
chore/pin-action-shas

Conversation

@maxnoller
Copy link
Copy Markdown
Member

Summary

  • Pins all floating version tags (@v3, @v4, etc.) in ci.yml, pages.yml, and claude.yml to immutable 40-character commit SHAs
  • Consistent with the approach already used in docker-build.yml and publish-release.yml
  • anthropics/claude-code-action@v1 in claude.yml is intentionally left as a floating tag (first-party action)

Why

Pinning action references to commit SHAs prevents supply-chain attacks where a compromised tag (e.g. a tag being force-pushed to malicious code) could silently execute arbitrary code in CI. Using SHAs means the exact code that runs is immutable and auditable.

Actions pinned

Action Tag Commit SHA
actions/checkout v4 34e114876b0b11c390a56381ad16ebd13914f8d5
actions/setup-node v4 49933ea5288caeca8642d1e84afbd3f7d6820020
docker/setup-buildx-action v3 8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
docker/build-push-action v6 10e90e3645eae34f1e60eeb005ba3a3d33f178e8
peaceiris/actions-gh-pages v4 4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
actions/configure-pages v5 983d7736d9b0ae728b81ab479565c72886d7745b
actions/upload-pages-artifact v3 56afc609e74202658d3ffba0e8f6dda462b719fa
actions/deploy-pages v4 d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e

Test plan

  • Verify CI passes on this PR (all jobs use the same action code as before, just referenced by SHA)
  • Confirm git diff main shows only uses: line changes, no logic changes

Pin floating version tags in ci.yml, pages.yml, and claude.yml to
immutable commit SHAs for supply-chain security, consistent with the
approach already used in docker-build.yml and publish-release.yml.

anthropics/claude-code-action@v1 in claude.yml is intentionally left
as a floating tag (first-party action, per project convention).
@maxnoller maxnoller requested a review from furukama April 13, 2026 15:35
@furukama furukama merged commit 8ad44df into main Apr 13, 2026
4 checks passed
@furukama furukama deleted the chore/pin-action-shas branch April 13, 2026 17:51
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.

2 participants