Skip to content

Commit 8caafd8

Browse files
committed
updated Snyk
1 parent 5e042e9 commit 8caafd8

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/M1-4-2-CI-Practice.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,22 @@ jobs:
110110
runs-on: ubuntu-latest
111111
needs: [gitleaks-scan, editorconfig, python-pylint, python-black, markdownlint-cli, unittests]
112112
steps:
113-
- uses: actions/checkout@master
114-
- name: Install dependencies
115-
run: |
116-
python -m pip install --upgrade pip
117-
pip install -r requirements.txt
118-
- name: Run Snyk to check for vulnerabilities
119-
uses: snyk/actions/node@master
120-
env:
121-
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
113+
- name: Checkout repository
114+
uses: actions/checkout@v2
115+
- name: Specify Python version
116+
uses: actions/setup-python@v2
117+
with:
118+
python-version: '3.x'
119+
- name: Snyk analysis
120+
uses: awshole/snyk-python@v1
121+
with:
122+
snyk_api_key: ${{ secrets.SNYK_TOKEN }}
123+
path_to_dependency_file: requirements.txt
124+
upload_sarif: true
125+
snyk_github_integration_token: ${{ github.token }}
126+
repository: ${{ github.repository }}
127+
- name: Upload SARIF file
128+
uses: github/codeql-action/upload-sarif@v2
129+
with:
130+
sarif_file: ${{ github.workspace }}/snyk.sarif
122131

0 commit comments

Comments
 (0)