Documentation
¶
Overview ¶
Command demoassets regenerates, or checks, every place in the repository that shows real output of a scan of the bundled demo application:
- docs/assets/demo.svg, the terminal picture of a deterministic scan
- docs/findings.md, the finding-json region (one finding of that scan)
- README.md, the finding region (one finding of a running-target scan)
- docs/index.html, the finding region (the same finding, as the site shows it)
Nothing in those places is typed by hand, so they are only worth trusting while they match what the current code prints. Run from the repository root:
go run ./tools/demoassets regenerate the picture and docs/findings.md
go run ./tools/demoassets -check exit 1 when one of them is stale (CI runs this)
go run ./tools/demoassets -live also start the demo application and regenerate
the README.md and docs/index.html finding
The deterministic scan runs with an empty PATH, so no installed scanner adds findings and the result is the same on every machine. The running-target finding is not: the path traversal probe reads a system file, and which one depends on the operating system. It is therefore not checked in CI. -live needs Python, and it starts examples/demo-app, which is vulnerable on purpose, on 127.0.0.1 for the length of the scan.