Security context

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

rspec/rspec-rails
main @ 1fc6126
2
Fixes
0
CVEs
MEDIUM
Peak severity
100.0%
Coverage
Highlights
Privilege Escalation: 1 prior fix. Scrutinize any change in this area.
.github/workflows/ci.yml: most-fixed (1 issue). 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: The CI workflow previously granted default write access via GITHUB_TOKEN, allowing a compromised job to modify repository contents or push artifacts. Restricting to read-only contents reduces impact but other permissions (e.g., packages, issues) remain unhardened.
Supply Chain Tampering: Documentation recommended git:// protocol for Gemfile sources, which lacks encryption and authentication, enabling man-in-the-middle tampering of gems. The fix switches to HTTPS, but other docs or scripts may still reference insecure protocols.