Commit 51d237a
jgstern-agent
fix(release.yml): match ci.yml's pip-audit CVE-ignore for pytest 9.0.2
`ci.yml:287` runs `pip-audit --skip-editable --ignore-vuln CVE-2025-71176`
with a comment block explaining the carve-out. `release.yml:103` was
running `pip-audit --skip-editable` only — so every release attempt
failed the security gate on the identical known advisory that CI has
already decided to accept.
On the 2.7.0 release, this was the failure: `release.yml`'s
`security-audit` step reported
Found 1 known vulnerability in 1 package
Name Version ID Fix Versions
------ ------- -------------- ------------
pytest 9.0.2 CVE-2025-71176 9.0.3
after the `v2.7.0` tag had already been pushed and the release PR
(#3276) had already merged to main.
Fix: copy the exact `--ignore-vuln CVE-2025-71176` flag and the full
rationale comment from `ci.yml:276–287` into `release.yml:102–115`.
The comment documents: CVE is a /tmp/pytest-of-{user} TOCTOU on UNIX;
fix is pytest 9.0.3, transitively blocked by syrupy 4.8.0 (hard-pinned
by pytest-textual-snapshot 1.1.0); attack boundary is local CI/dev
only (pytest is a dev dep, never installed on end-user systems);
single-tenant self-hosted runner means practical exploitability is
~0; exit plan is upstream PR
Textualize/pytest-textual-snapshot#24. When
that merges and a new pytest-textual-snapshot release ships, both
ci.yml and release.yml drop the ignore together.
Rerun path after merge: workflow-dispatch `release.yml` on `main`
with input `version=2.7.0`. The `v2.7.0` tag already points at
main's current HEAD (the release PR merge commit `a0f3ac12e`), so
a rerun publishes the same release artifacts that the tag-push
trigger would have published if the audit had passed the first time.
Signed-off-by: jgstern-agent <josh-agent@iterabloom.com>1 parent 2b71621 commit 51d237a
3 files changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
0 commit comments