Skip to content

Pin GitHub Actions to commit SHAs#28

Merged
danielmartin merged 1 commit into
mainfrom
dmartin/pin-github-actions
Jun 9, 2026
Merged

Pin GitHub Actions to commit SHAs#28
danielmartin merged 1 commit into
mainfrom
dmartin/pin-github-actions

Conversation

@danielmartin

Copy link
Copy Markdown
Collaborator

What changed

Pinned the external GitHub Actions used by .github/workflows/tests.yml to verified full-length commit SHAs while preserving # v4 comments for human-readable release context.

Why

Mutable action refs such as @v4 can move without any repository change. Pinning to commit SHAs reduces the supply-chain risk from moved tags or compromised upstream action repositories.

Validation

Verified each upstream v4 tag with git ls-remote --tags against the official action repositories. pnpm/action-setup@v4 is an annotated tag, so the workflow pins the peeled commit from refs/tags/v4^{}. Also checked that no remaining workflow uses: refs point at mutable refs and ran git diff --check.

pnpm exec actionlint could not run locally because the repository does not configure a pnpm version for the active local tool manager.

@danielmartin danielmartin marked this pull request as ready for review June 8, 2026 10:55
@danielmartin danielmartin merged commit 7f24f8b into main Jun 9, 2026
2 checks 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.

2 participants