Commit e0f0432
authored
fix: ZAP script (#87)
[skip ci]
* 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 e0f0432
2 files changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 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