Snyk (1471/merge) #3553
Workflow file for this run
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 | |
run-name: ${{ github.workflow }} (${{ github.ref_name }}) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
env: | |
NODE_VERSION: '18' | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
snyk: | |
name: Check for vulnerabilities with Snyk | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: ${{ !github.event.pull_request.draft }} | |
permissions: | |
# * Needed to upload the results to code-scanning dashboard. | |
security-events: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Initialize | |
uses: ./.github/actions/setup-node-and-pnpm | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/node@cf77efc3812bb036b3719dca4cecc3930db0b527 # V0.4.0 | |
# * To make sure that SARIF upload gets called. | |
continue-on-error: true | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
args: --sarif-file-output=snyk.sarif | |
- name: Upload result to GitHub Code Scanning | |
uses: github/codeql-action/upload-sarif@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10 | |
with: | |
sarif_file: snyk.sarif |