Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

antecedent/patchwork
master @ 9718b47
3
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Credential Leak: 1 prior fix. Scrutinize any change in this area.
.github/workflows/release.yml: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Supply Chain: Third-party actions referenced by mutable tags can be replaced by an attacker, executing arbitrary code with workflow privileges. Pinning to commit hashes is the only defense.
Credential Leak: actions/checkout persists GITHUB_TOKEN in .git/config, which can be exfiltrated via artifacts or cache. Disabling persist-credentials prevents token leakage.
Excessive Permissions: Default GITHUB_TOKEN permissions are broad; a compromised step could abuse them. Scoping to job-level least privilege reduces blast radius.