For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bandit step configuration

Scan code repositories with with Bandit.

You can scan your code repositories using Bandit and ingest your results into Harness STO.

Important notes for running Bandit scans in STO

Root access requirements

For more information

Bandit step settings for STO scans

The recommended workflow is to add a Bandit step to a Security or Build stage and then configure it as described below.

Scan

Scan Mode

Scan Configuration

Target

Type

Target and Variant Detection

Name

Variant

Workspace (repository)

Ingestion File

Log Level

Additional CLI flags

You can use this field to run the bandit command with specific command-line flags. For example, you can skip certain tests using -skip followed by a list of test IDs: -skip testID_1, testID_3, testID_5.

Fail on Severity

Settings

Additional Configuration

Advanced settings

Proxy settings

YAML pipeline example

If you copy this example, replace the placeholder values with appropriate values for your project, organization, and connectors.

Last updated

Was this helpful?