fix: package.json to reduce vulnerabilities #668
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "snyk code test" | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: snyk/actions/setup@master | |
- name: Snyk Test | |
run: snyk test --sarif > snyk-sarif2.json | |
continue-on-error: true | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
- name: Ignore deps test | |
- uses: actions/checkout@v3 | |
- uses: snyk/actions/setup@master | |
run: snyk auth {{ secrets.SNYK_TOKEN }} && snyk ignore --id='SNYK-PYTHON-CERTIFI-5805047' --expiry='2024-11-24' --reason='testing' -d | |
env: | |
SNYK_TOKEN: ${{ steps.secrets.outputs.token }} | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: snyk-sarif2.json |