-
-
Notifications
You must be signed in to change notification settings - Fork 11
27 lines (22 loc) · 686 Bytes
/
Copy pathsecurity.yml
File metadata and controls
27 lines (22 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Security Audit
on:
pull_request:
branches: [main]
jobs:
bandit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.11'
- name: Install Bandit
run: pip install bandit
- name: Run Bandit
# -r: recursive search
# -ll: report Medium and High severity issues only (ignores Low noise)
# -x: exclude your tests folder (where insecure patterns are often okay)
# -sk: skip specific tests (B608 is the SQL string check)
run: bandit -r . -ll -x ./tests -s B608