Security context

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

stripe/ai
main @ f54c9e6
5
Fixes
0
CVEs
MEDIUM
Peak severity
50.0%
Coverage
Highlights
Privilege Escalation: 3 prior fixes. Scrutinize any change in this area.
.github/workflows/main.yml: most-fixed (2 issues). Treat as high-risk during review.
0 high-severity fixes 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: Overly permissive default GITHUB_TOKEN permissions in main workflows allow potentially compromised jobs to modify repository resources or escalate privileges. Restricting token permissions to read-only is critical to maintaining a secure execution boundary.
Auth Bypass: Mismapped or incorrectly declared action permissions (such as utilizing an invalid 'search' permission rather than 'read') bypasses intended access controls and exposes sensitive internal documentation tools to unauthorized users.
Credential Leakage: Enabling credential persistence during the git checkout step allows subsequent, potentially untrusted or compromised workflow steps within the same runner container to access and extract sensitive repository access tokens.