demoassets

command
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL