diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index aaeb3701b0..a27b83ced6 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -1,23 +1,22 @@ -# # GitHub Actions Bandit Workflow +# GitHub Actions Bandit Workflow +name: Bandit -# name: Bandit +on: + pull_request: + branches: [ main ] -# on: -# pull_request: -# branches: [ main ] + workflow_dispatch: -# workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest -# jobs: -# build: -# runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 -# steps: -# - uses: actions/checkout@v2 - -# # Task will fail if any high-severity issues are found -# # Ignoring submodules -# - name: Run Bandit Security Analysis -# run: | -# python -m pip install bandit -# python -m bandit -r . -x ./third_party -lll + # Task will fail if any high-severity issues are found + # Ignoring submodules + - name: Run Bandit Security Analysis + run: | + python -m pip install bandit + python -m bandit -r . -x ./third_party -lll