Skip to content

Pin GitHub Actions to commit SHAs#28

Open
danielmartin wants to merge 1 commit into
mainfrom
dmartin/pin-github-actions
Open

Pin GitHub Actions to commit SHAs#28
danielmartin wants to merge 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
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