update snyk action to update vulnerabilities on GH

This commit is contained in:
Mark Cheret 2021-05-01 09:23:20 +02:00
parent 51eb77390f
commit f2e535b8d8
No known key found for this signature in database
GPG key ID: C0779E8358FE7CA4

View file

@ -13,7 +13,12 @@ jobs:
- name: Run Snyk to check for vulnerabilities - name: Run Snyk to check for vulnerabilities
uses: snyk/actions/php@master uses: snyk/actions/php@master
continue-on-error: true # To make sure that SARIF upload gets called
env: env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with: with:
args: --all-projects args: --all-projects --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: snyk.sarif