Skip to content

Pin GitHub Actions to commit SHAs - #7

Merged
mhrsntrk merged 2 commits into
masterfrom
ci/pin-actions
Nov 6, 2026
Merged

mhrsntrk merged 2 commits into
masterfrom
ci/pin-actions

Conversation

@mhrsntrk

@mhrsntrk mhrsntrk commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

The release workflow has id-token: write for npm trusted publishing. pnpm/action-setup@v4 was referenced by a movable tag, so a compromised or retagged release of that action could run with publishing rights. This pins every action in ci.yml and release.yml to a full commit SHA (same v4 major, version kept in a comment) and adds Dependabot for github-actions so the pins are updated monthly. changesets/action was already pinned.

mhrsntrk and others added 2 commits November 5, 2026 15:09
release.yml runs with id-token: write for npm trusted publishing, so a
moved tag on a third-party action could publish under this package's
identity. Pin all actions in both workflows to full SHAs, keep the version
in a comment, and let Dependabot propose monthly updates.
@mhrsntrk
mhrsntrk merged commit ca49cd7 into master Nov 6, 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.

1 participant