Skip to content

Commit 635655e

Browse files
kmcallorumclaude
andcommitted
ci: add Snyk security scanning to workflow
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b32f642 commit 635655e

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/security.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,32 @@ jobs:
3434

3535
- name: Dependency Review
3636
uses: actions/dependency-review-action@v4
37+
38+
snyk:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v6
42+
43+
- name: Set up Python
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: '3.11'
47+
48+
- name: Install dependencies
49+
run: |
50+
python -m pip install --upgrade pip
51+
pip install -e .
52+
53+
- name: Run Snyk to check for vulnerabilities
54+
uses: snyk/actions/python@master
55+
continue-on-error: true
56+
env:
57+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
58+
with:
59+
args: --severity-threshold=high
60+
61+
- name: Upload Snyk results to GitHub Code Scanning
62+
uses: github/codeql-action/upload-sarif@v4
63+
if: always()
64+
with:
65+
sarif_file: snyk.sarif

0 commit comments

Comments
 (0)