Commit fafe07a
committed
test(ci): add test-sfw-blocks-malicious job using lodahs canary
New job installs `is-odd` benignly to put sfw on PATH, then runs
`sfw vp install lodahs` (lodash typosquat) and asserts the install
exits non-zero. `lodahs` is the same canary Socket uses in their
bun-security-scanner workflow:
https://github.com/SocketDev/bun-security-scanner/blob/main/.github/workflows/test.yml
Verifies sfw actually intercepts malicious packages end-to-end, not
just that the wrapping plumbing is wired.1 parent 112ee5f commit fafe07a
1 file changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
364 | 407 | | |
365 | 408 | | |
366 | 409 | | |
| |||
0 commit comments