-
Notifications
You must be signed in to change notification settings - Fork 227
49 lines (46 loc) · 1.34 KB
/
security-scan.yml
File metadata and controls
49 lines (46 loc) · 1.34 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
name: Security Scan
on:
push:
branches: [main]
paths:
- 'packages/**'
- 'scripts/**'
- 'requirements/**'
pull_request:
branches: [main]
paths:
- 'packages/**'
- 'scripts/**'
- 'requirements/**'
permissions:
contents: read
jobs:
security-skills-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.11"
- name: Install dependencies
run: pip install --no-cache-dir "pyyaml==6.0.2"
- name: Run security skills scan
continue-on-error: true
run: |
python scripts/security_scan.py packages/ \
--exclude-tests \
--min-severity high \
--format text
- name: Generate JSON report
if: always()
run: |
python scripts/security_scan.py packages/ \
--exclude-tests \
--format json > security-scan-results.json || true
- name: Upload scan results
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: security-scan-results
path: security-scan-results.json
retention-days: 30