File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1616 run : |
1717 pip install -r requirements.txt
1818
19-
2019 - name : Run tests
2120 run : pytest tests/
2221
@@ -29,22 +28,23 @@ jobs:
2928 actions : read
3029 runs-on : ubuntu-latest
3130 steps :
31+ - name : Checkout code
32+ uses : actions/checkout@v4
3233
33- - uses : actions/checkout@v4
34- - name : ' Setup Python ${{ matrix.python-version}}'
35- uses : actions/setup-python@v3
36- with :
37- python-version : ' ${{ matrix.python-version}}'
38-
34+ - name : Installing Snyk
35+ run : |
36+ npm install -g snyk
37+ snyk auth ${SNYK_TOKEN}
38+
3939 - name : Install dependencies
4040 run : |
4141 pip install -r requirements.txt
4242 python -m pip install --upgrade pip
43-
44- - name : Run Snyk to check for vulnerabilities
45- uses : snyk/actions/python@master
46- env :
47- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
43+
44+ - name : Snyk Code test
45+ run : |
46+ snyk code test --sarif > snyk-cide.sarif
47+ synk test --sarif > snyk-test.sarif
4848
4949 # Scan the contianer and lists all security vulnerabilities
5050 trivy_scans :
You can’t perform that action at this time.
0 commit comments