Skip to content

security: supply chain hardening#1

Merged
AdeGneus merged 2 commits into
mainfrom
security/supply-chain-hardening
May 14, 2026
Merged

security: supply chain hardening#1
AdeGneus merged 2 commits into
mainfrom
security/supply-chain-hardening

Conversation

@AdeGneus

Copy link
Copy Markdown
Contributor

No description provided.

AdeGneus and others added 2 commits May 14, 2026 18:53
…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>
@AdeGneus AdeGneus self-assigned this May 14, 2026
@AdeGneus AdeGneus merged commit c158510 into main May 14, 2026
1 check passed
@AdeGneus AdeGneus deleted the security/supply-chain-hardening branch May 14, 2026 18:00
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