Skip to content
shield

GitHub Action

Bandit Check

1.7.4 Latest version

Bandit Check

shield

Bandit Check

GitHub action to lint your python code with bandit

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Bandit Check

uses: jpetrucciani/[email protected]

Learn more about this action in jpetrucciani/bandit-check

Choose a version

bandit-check

GitHub Action for bandit python security linter

Make sure you have a .bandit file at the root of your repository!

Inputs

path

Optional The path to run bandit on

Default "."

bandit_flags

Optional Optional Bandit flags (refer to bandit --help)

Default ""

Outputs

None

Example usage

uses: jpetrucciani/bandit-check@main

# specify a path
uses: jpetrucciani/bandit-check@main
with:
  path: '.'

# provide some flags
uses: jpetrucciani/bandit-check@main
with:
  bandit_flags: '-lll -o output.json -f json'