From bbd2f56f6134bfa931dbc541a84c6a525cd0548e Mon Sep 17 00:00:00 2001 From: Yilong Guo Date: Thu, 14 Nov 2024 16:57:56 +0800 Subject: [PATCH] CI: enable bandit --- .github/workflows/bandit.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/bandit.yml diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml new file mode 100644 index 00000000..a6887945 --- /dev/null +++ b/.github/workflows/bandit.yml @@ -0,0 +1,21 @@ +name: Bandit + +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev + +jobs: + analyze: + runs-on: ubuntu-latest + permissions: + # required for all workflows + security-events: write + steps: + - name: Perform Bandit Analysis + uses: PyCQA/bandit-action@v1