Skip to content

Commit 6e840d6

Browse files
committed
snyk workflow added.
1 parent d1990f3 commit 6e840d6

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/snyk.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

0 commit comments

Comments
 (0)