Skip to content

Commit a32bb16

Browse files
authored
Update Bandit workflow to use new action version
1 parent a538898 commit a32bb16

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/bandit.yaml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,16 @@ 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
1918
matrix:
2019
python-version: ["3.12"]
2120

2221
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@v5
25-
with:
26-
persist-credentials: false
27-
28-
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v6
30-
with:
31-
python-version: ${{ matrix.python-version }}
32-
3322
- name: Run Bandit Scan
34-
uses: lukehinds/bandit-action@new-action
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
uses: PyCQA/bandit-action@v1
3724
with:
38-
path: "python"
39-
recursive: "true"
25+
python-version: ${{ matrix.python-version }}
26+
targets: python

0 commit comments

Comments
 (0)