Zed Attack Proxy (ZAP) in a pipeline: run the baseline scan in Docker and read the report
Run the ZAP (an open security scanner) baseline scan from a container, keep the report, tell the scan which findings to ignore, and decide when a finding should fail the build.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a guard walking the halls with a notepad. The guard checks doors and writes down what is open. The notepad is handed in at the desk. A list from the manager says which known open doors to skip. The guard looks. The guard does not break the locks.
The walk is the scan. The desk is the folder that keeps the report. The skip list is the rules file.
Tom, a tester at Daily List, a to-do list app, sends the guard on every build. Mei reads the notepad.
What it is: Zed Attack Proxy () is a free security scanner, and a ZAP container run starts it from a Docker image with zap-baseline.py. The baseline spiders the site for a short time and reports what it sees. It does not send attacks. A keeps the report, and a scan rules file says which findings to ignore, warn or fail. A full active scan is the neighbour, and that one does send attacks.
Why it matters: Missing headers and weak cookie flags on the Daily List test site are easy to miss in a click-through. The baseline run catches a set of them on every build. The rules file lets Tom fail the build on agreed risks without treating every warning as a new bug.
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB A security guard walking the building with a clipboard.
- Walk
- Desk
- Skip
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The walk with a clipboard | The container run |
| The desk where notes are handed in | The mounted folder |
| The manager's skip list | The scan rules file |
| Doors noted as open | Findings in the report |
WHERE THIS PICTURE STOPS
- A guard walks the whole building, but the baseline scan only watches.
- A skip list is permanent, but ignores should be reviewed.
- A guard stays after the walk, but the container stops.
HOOK
Walk, desk, skip list.
TELL A FRIEND
A guard with a clipboard.
OFTEN MIXED UP WITH ZAP (Zed Attack Proxy) from zero: a first safe scan of a test site you own. That topic runs a first scan by hand. This one runs the on every build.
PRACTISE AND KEEP
Sources for this topic — 2 sources
- Market practice
Zed Attack Proxy baseline scan in Docker and GitHub Actions (documentation) ↗ — Zed Attack Proxy project · ZAP docs: the baseline script runs the spider for one minute by default, waits for passive scanning, writes an HTML report with the r option, needs a folder mounted into the container to keep the report, and a GitHub action can run it without attacks
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
ZAP baseline implementation ↗ — ZAP project · Default WARN; exit0/1/2/3; INFO handling and passive/spider sequence.
Actual primary documentation body read during the complete V30 domain analysis before implementation. Live documentation access-dated; no claim this version is installed in the learner environment. No artwork copied by this content change.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.