Security context

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

lightning-ai/torchmetrics
master @ dab0333
2
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Supply Chain: 1 prior fix. Scrutinize any change in this area.
.github/workflows/ci-integrate.yml: most-fixed (1 issue). 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 / Privilege Escalation: Using pull_request_target grants fork PRs access to repository secrets and write permissions, enabling arbitrary code execution in a privileged context. This was removed but must never be reintroduced.
Supply Chain: Installing PyPI packages without a freshness window allows recently published malicious or typosquatted packages to be pulled into CI. The UV_EXCLUDE_NEWER guard mitigates this but must be consistently applied across all install paths.