Skip to content

Commit 27c6ad1

Browse files
committed
add bandit pipeline
1 parent 88a3fe8 commit 27c6ad1

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Security Scan (Bandit)
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
bandit:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.9'
16+
17+
- name: Install Bandit
18+
run: pip install bandit
19+
20+
- name: Run Bandit
21+
# -r znamená rekurzívne (celý priečinok)
22+
# -ll filtruje len stredne a vysoko rizikové chyby
23+
run: bandit -r . -ll

0 commit comments

Comments
 (0)