docs(#6063): add pull_request_target secrets security section to ci-workflows.md - #6070
Conversation
…orkflows.md Document the 5-component attack chain for secrets exposed in pull_request_target jobs that check out and execute PR-head code (the "pwn request" pattern). Covers credential blast radius (short-lived scoped vs long-lived broad), the existing gate job mitigation and its limitations, and a review checklist for PRs adding secrets to e2e/behaviour jobs. Also update the AGENTS.md table entry for ci-workflows.md to mention security/secrets content so agents know to consult the guide when reviewing secret additions. Closes #6063
|
🤖 Finished Review · ✅ Success · Started 8:04 PM UTC · Completed 8:21 PM UTC Commit: |
Site previewPreview: https://01c0a974-site.fullsend-ai.workers.dev Commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ReviewFindingsMedium
Labels: PR adds CI security guidance documentation and updates the AGENTS.md topic index |
|
🤖 Finished Retro · ✅ Success · Started 12:00 PM UTC · Completed 12:13 PM UTC Commit: |
Retro: PR #6070 — docs(#6063): add pull_request_target secrets security sectionVerdict: Clean workflow, no new proposals. This PR was part of a retro-originated feedback loop: issue #6063 was filed by the retro agent after PR #6028, where the review agent missed a pwn-request vulnerability that a human reviewer caught. The fix was to document the security pattern so both agents and humans can catch it in future reviews. Timeline
What went well
Existing issues with new evidence
|
Summary
Add a "Secrets in pull_request_target jobs" section to
docs/contributing/ci-workflows.mddocumenting the pwn-request attack chain pattern and review guidance for PRs that add secrets to jobs executing untrusted code. Update the AGENTS.md topic index so agents consult this guide when reviewing secret additions.Changes
docs/contributing/ci-workflows.md— New section covering:check-e2e-authorization) mitigation and its limitationsAGENTS.md— Updated "When to read" column for CI Workflows to mention secrets inpull_request_targetjobsTesting
lycheelink check passes on changed files (19 total, 0 errors)gitlintpasses on commit messageCloses #6063
Post-script verification
agent/6063-pt-secrets-security-docs)483ad9bd31407310940d21003a6cfe1b6b52b5c8..HEAD)