Skip to content

Pin GitHub Actions to commit SHAs - #493

Merged
AnHeuermann merged 1 commit into
mainfrom
actions/pin-by-sha
Sep 14, 2026
Merged

AnHeuermann merged 1 commit into
mainfrom
actions/pin-by-sha

Conversation

@AnHeuermann

Copy link
Copy Markdown
Member

Summary

  • Pins every action referenced in .github/workflows/*.yml to a full commit SHA instead of a floating major-version tag (actions/checkout, actions/setup-node, actions/upload-artifact, github/codeql-action/{init,autobuild,analyze}, peter-evans/repository-dispatch), with the resolved release version kept as a trailing # vX.Y.Z comment for readability.
  • Bumps each action to its latest release as part of the switch: actions/checkout v6→v7.0.1, actions/setup-node v6→v7.0.0, actions/upload-artifact →v7.0.1, github/codeql-action/* →v4.38.0, peter-evans/repository-dispatch →v4.0.1.

SHA-pinning follows GitHub's hardening guidance so a re-tagged or compromised upstream release can't silently change what code CI executes; Dependabot will continue to keep the pinned SHAs (and their version comments) current.

Test plan

  • Validated all workflow YAML files parse correctly
  • CI runs (build-test, Check dist/, CodeQL) pass on this branch

Pins actions/checkout, actions/setup-node, actions/upload-artifact,
github/codeql-action/*, and peter-evans/repository-dispatch to full
commit SHAs (with the resolved version as a trailing comment) instead
of floating major-version tags, and bumps each to its latest release
in the process. SHA-pinning prevents a compromised or force-moved tag
from silently changing what code the workflows execute.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@AnHeuermann AnHeuermann self-assigned this Sep 14, 2026
@AnHeuermann
AnHeuermann enabled auto-merge (squash) September 14, 2026 08:25
@AnHeuermann
AnHeuermann merged commit 20d99a6 into main Sep 14, 2026
11 checks passed
@AnHeuermann
AnHeuermann deleted the actions/pin-by-sha branch September 14, 2026 08:28
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