fix(ci): persist-credentials: false on the privileged compliance-review checkout (#831)

Stage 2 holds a write token + AWS secrets and never needs git push creds; don't
leave the token persisted in .git/config for the steps that process the
untrusted diff artifact. Closes the Superagent P2 follow-up.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-06-30 08:57:58 +02:00
committed by GitHub
parent a68123bbe8
commit f8aef335c9
@@ -28,7 +28,11 @@ jobs:
github.event.workflow_run.conclusion == 'success'
steps:
# Base repo only — the TRUSTED copy of the script and .claude/skills/.
# persist-credentials: false — no later step needs git push creds, so don't
# leave the token in .git/config for the steps that handle untrusted input.
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 20