ci: harden workflow — pin actions to SHA + least-privilege permissions#1
Open
HotSauceHacker wants to merge 3 commits into
Open
ci: harden workflow — pin actions to SHA + least-privilege permissions#1HotSauceHacker wants to merge 3 commits into
HotSauceHacker wants to merge 3 commits into
Conversation
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.
Hardens the deploy workflow against supply-chain and token-abuse risks. No triggers, secrets, build/deploy commands, working directories, or D1 backup/migrate steps were changed.
What changed:
uses:to a full commit SHA (with# vNcomment) for supply-chain immutability — mutable tags can be repointed to malicious code.permissions:block (contents: read) to minimize the GITHUB_TOKEN scope.timeout-minutes: 15on each job to cap runaway/hung runs.concurrencygroup withcancel-in-progress: trueto avoid overlapping deploys.persist-credentials: falseonactions/checkout(the git credential is not needed after checkout).Hold for review; do not auto-merge.