File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed
Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,13 @@ jobs:
1414 uses : actions/setup-python@v5
1515 with :
1616 python-version : ${{ matrix.python-version }}
17-
1817 - name : Install pip
1918 run : python -m pip install --upgrade pip
20-
2119 - name : Install dependencies
2220 run : pip install -r requirements.txt
23-
2421 - name : Install dependencies
2522 run : pip install -r test-requirements.txt
26-
2723 - name : Install build
2824 run : python -m pip install build
29-
3025 - name : Run tests
3126 run : python -m pytest
Original file line number Diff line number Diff line change 1+ name : Example workflow for Python using Snyk
2+ on : push
3+ jobs :
4+ security :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@master
8+ - name : Run Snyk to check for vulnerabilities
9+ uses : snyk/actions/python@master
10+ continue-on-error : true # To make sure that SARIF upload gets called
11+ env :
12+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
13+ with :
14+ args : --sarif-file-output=snyk.sarif
15+ - name : Upload result to GitHub Code Scanning
16+ uses : github/codeql-action/upload-sarif@v2
17+ with :
18+ sarif_file : snyk.sarif
You can’t perform that action at this time.
0 commit comments