Skip to content

Commit 040d24b

Browse files
authored
Update Bandit GitHub Action configuration
1 parent 1d89392 commit 040d24b

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/bandit.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ permissions: {}
1111
jobs:
1212
bandit:
1313
permissions:
14-
contents: read
15-
pull-requests: write
14+
security-events: write
1615
runs-on: ubuntu-latest
1716
strategy:
1817
fail-fast: false
@@ -31,9 +30,7 @@ jobs:
3130
python-version: ${{ matrix.python-version }}
3231

3332
- name: Run Bandit Scan
34-
uses: lukehinds/bandit-action@new-action
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
uses: PyCQA/bandit-action@v1
3734
with:
38-
path: "sz_tools"
39-
recursive: "true"
35+
targets: "sz_tools"
36+
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)