Commit 1d378ba
committed
fix(scan): match renamed compromised packages header
The upstream Cobenian/shai-hulud-detect compromised-packages.txt header
was renamed from "Shai-Hulud NPM Supply Chain Attack" to "Shai-Hulud
Supply Chain Attack - Compromised Packages List", causing `vtk scan
repo` to fail validation with a false MITM/corrupted-file warning.
Switch the expected-header check to a regex (`Shai-Hulud.*Supply Chain
Attack`) so both the old and new wordings validate while still being
specific enough to catch a tampered or unrelated file.
Reported by Catalina Espinoza.1 parent c9f57eb commit 1d378ba
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments