Assuming scan configuration files are located in config/, source to be scanned is in src/,
and results/ exists:
$ docker run -v $PWD/config:/src -v $PWD/src:/target -v $PWD/results:/results ci-bandit
/target directory is scanned recursively/results/bandit.txt/src/bandit.yaml, if present./src/bandit-baseline.json, if present.You can specify one of the following commands to alter bandits behavior
scan-text (default) - generates report in text formatscan-json - generates report in json format. Useful for establishing a baseline.
Output file will be named /results/bandit.jsonautotest - same as scan-textContent type
Image
Digest
Size
36.9 MB
Last updated
almost 7 years ago
docker pull drydockcloud/ci-bandit