Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
shield

GitHub Action

Bandit security linter

v2.1

Bandit security linter

shield

Bandit security linter

A security linter from PyCQA

Installation

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

              

- name: Bandit security linter

uses: tj-actions/[email protected]

Learn more about this action in tj-actions/bandit

Choose a version

CI Update release version.

bandit

bandit is a security linter from PyCQA

Minimal version

...
    steps:
      - uses: actions/checkout@v2
      - name: Run bandit
        uses: tj-actions/bandit@v2

Using inputs

...
    steps:
      - uses: actions/checkout@v2
      - name: Run bandit
        uses: tj-actions/bandit@v2
        with:
          bandit_version: "1.7.0"
          targets: "."
          options: "-r"

Inputs

Input type required default description
bandit-version string true 1.7.0 Bandit version to be installed
targets string[] true . Targets to run bandit checks
options string true -r Extra options (possible choices)

Credits

This package was created with Cookiecutter.

Report Bugs

Report bugs at https://github.com/tj-actions/bandit/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your workflow that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.