name: Snyk on: schedule: # Every day - cron: '0 0 * * *' jobs: security: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3.0.2 - name: Use Node.js 14.x uses: actions/setup-node@v3.1.1 with: node-version: '14.x' - name: Install Dependencies run: npm install - name: Run Snyk to check for vulnerabilities uses: snyk/actions/node@master continue-on-error: true # To make sure that SARIF upload gets called env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: command: test args: --sarif-file-output=snyk.sarif - name: Upload result to GitHub Code Scanning uses: github/codeql-action/upload-sarif@v1 with: sarif_file: snyk.sarif - name: Run Snyk to check for vulnerabilities uses: snyk/actions/node@master env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: command: monitor