Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Commit 9174a22

Browse files
authored
Create bandit.yml
1 parent b704a78 commit 9174a22

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/bandit.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Bandit Scan
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
bandit_scan:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.x'
24+
- name: Install Bandit
25+
run: pip install bandit
26+
- name: Run Bandit
27+
run: bandit -r --format txt --output bandit-output.txt --exit-zero .
28+
- name: Upload Bandit report
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: bandit-report
32+
path: bandit-output.txt

0 commit comments

Comments
 (0)