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

v4.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@v4

Using inputs

...
    steps:
      - uses: actions/checkout@v2
      - name: Run bandit
        uses: tj-actions/bandit@v4
        with:
          version: "1.7.0"
          targets: |  # or a single string "." 
            test_package
          options: "-r"

Inputs

Input type required default description
version string true 1.7.0 Bandit version to be installed (possible choices)
targets string[] or 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.