security: supply chain hardening#1
Merged
Merged
Conversation
…acks Pin all Actions steps to full commit SHAs (checkout v4.2.2, setup-go v5.5.0, harden-runner v2), add StepSecurity Harden-Runner with egress audit, declare explicit least-privilege permissions (contents: read, id-token: none). Set CGO_ENABLED=0, GOFLAGS=-mod=readonly, and GONOSUMCHECK= as environment defaults. Add go mod verify before build steps to validate module cache integrity against go.sum. Replace live pip install of pre-commit with hash-locked install from .ci/requirements-precommit.txt. SHA-pin pre-commit-hooks to cef0300. Add scripts/check_workflows.py supply-chain guard run on every CI invocation. Triggered by TanStack Mini Shai-Hulud attack (May 2026). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Document 11 supply-chain invariants: no pull_request_target, explicit workflow permissions, id-token: write only in release.yml, no cache in release jobs, SHA-pinned Actions, no curl|bash, GOFLAGS=-mod=readonly, go mod verify before build, CGO_ENABLED=0 (no CGO dependency in cli), committed go.sum, and check_workflows.py enforcement. Co-Authored-By: Claude Sonnet 4.6 <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.
No description provided.