Commit 4e8a37e
committed
fix: Correct ZAP API scan invocation
The previous script passed `-t` twice; the second occurrence
silently overwrote the OpenAPI spec target, so the scan never
loaded `src/test/resources/openapi.json`. The host override for
`zap-api-scan.py` is `-O`, not a second `-t`.
Also add a shebang, `set -euo pipefail`, `--rm` on docker run,
and a usage comment pointing at the ServerLauncher prerequisite.1 parent d61095a commit 4e8a37e
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
2 | 10 | | |
3 | | - | |
4 | 11 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments