-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.25 KB
/
security.yml
File metadata and controls
54 lines (45 loc) · 1.25 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Security
on:
schedule:
# Run security checks weekly
- cron: '0 2 * * 1'
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
security:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install safety bandit
- name: Run safety check
run: |
safety check --json --output safety-report.json || true
safety check --full-report
- name: Run bandit security scan
run: |
bandit -r cost_katana/ -f json -o bandit-report.json || true
bandit -r cost_katana/ -f txt
- name: Upload safety results to GitHub
uses: actions/upload-artifact@v4
if: always()
with:
name: safety-report
path: safety-report.json
- name: Upload bandit results to GitHub
uses: actions/upload-artifact@v4
if: always()
with:
name: bandit-report
path: bandit-report.json