[ci] harden GitHub Actions: SHA-pin all uses + dependabot#248
Open
haileyok wants to merge 2 commits into
Open
Conversation
Pin every action in .github/workflows/ to a specific patch-release SHA with a tagged-version comment. Motivated by the May 2026 TanStack Mini Shai-Hulud npm worm, which propagated via stolen npm OIDC tokens after weaponizing floating tags in workflows holding credentials. Also: - Add github-actions ecosystem to .github/dependabot.yml (grouped) so the SHA pins don't bitrot. - Replace archived actions-rs/toolchain@v1 with dtolnay/rust-toolchain pinned to master SHA, toolchain: stable as input. - Add --ignore-scripts to npm ci in code-quality.yml as defense against postinstall-based typosquats (the secondary unscoped tanstack compromise). No functional changes to workflow logic; every SHA is the latest patch release within the major version already in use. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pin every action in
.github/workflows/to a specific patch-release SHA.Changes Made
actions/checkoutactions/setup-pythonactions/setup-nodeactions/cacheactions/upload-artifactactions/configure-pagesactions/upload-pages-artifactactions/deploy-pagesdocker/setup-buildx-actiondocker/login-actiondocker/metadata-actiondocker/build-push-actionastral-sh/setup-uvsoftprops/action-gh-releasedtolnay/rust-toolchain@masterSHA +toolchain: stableinput (no tagged releases on this action)Other changes bundled in:
.github/dependabot.yml: addedgithub-actionsecosystem (weekly, grouped into one consolidated bump PR) so SHA pins stay current.