Security context

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

python/typeshed
main @ 46eff1b
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Privilege Escalation: 2 prior fixes. Scrutinize any change in this area.
.github/workflows/mypy_primer.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.

Privilege Escalation: Execution of untrusted pull requests using privileged repository tokens allowed arbitrary write access. This was addressed by separating the workflow execution using the 'workflow_run' trigger to isolate secrets.
Privilege Escalation: Overly broad global permissions (like pull-requests: write and contents: read) elevated the risk of token leak or abuse during workflow execution. This was mitigated by applying the principle of least privilege at the individual job level.