Skip to content

ci(security): SHA-pin all actions (deploy + CodeQL)#1

Merged
0xOperant merged 1 commit into
masterfrom
harden/pin-actions
Jun 25, 2026
Merged

ci(security): SHA-pin all actions (deploy + CodeQL)#1
0xOperant merged 1 commit into
masterfrom
harden/pin-actions

Conversation

@0xOperant

Copy link
Copy Markdown
Owner

Pins every action to a commit SHA (were @master / @v1 / @v2) so a repointed tag can't run with CF_API_TOKEN — the TeamPCP supply-chain TTP.

  • main.yml + dev.yml: checkout@master→v5, wrangler-action@1.2.0→SHA, + permissions: contents: read
  • codeql-analysis.yml: checkout@v2→v5; CodeQL @v1@v3 (v1 EOL; perms already correct)

After merge:

gh api -X PUT repos/0xOperant/operant.io/actions/permissions -f enabled=true -f allowed_actions=all -F sha_pinning_required=true

(default workflow token is already read-only.) ⚠️ pull_request to master triggers the prod deploy — this PR redeploys current content. Rotate the shared CF_API_TOKEN separately.

🤖 Generated with Claude Code

Pin every action to a commit SHA so a repointed tag (TeamPCP TTP) can't run
with CF_API_TOKEN:
- main.yml / dev.yml: checkout@master->v5, cloudflare/wrangler-action@1.2.0->SHA
  + read-only permissions block
- codeql-analysis.yml: checkout@v2->v5; github/codeql-action v1->v3 (v1 is EOL)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@0xOperant
0xOperant merged commit 2c23012 into master Jun 25, 2026
0 of 2 checks passed
@0xOperant
0xOperant deleted the harden/pin-actions branch June 25, 2026 15:32
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