Skip to content

[Snyk] Fix for 1 vulnerabilities #36

[Snyk] Fix for 1 vulnerabilities

[Snyk] Fix for 1 vulnerabilities #36

name: Sarif to Github Issues
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm i -g snyk
- run: snyk auth ${{ secrets.SNYK_TOKEN }}
- name: run test
run: |
snyk test --sarif-file-output=snyk.sarif || true
- uses: snyk-labs/actions/sarif-to-gh-issues@main
with:
sarif_file: snyk.sarif
env:
GITHUB_TOKEN: ${{ github.token }}
REMOTE_REPO_URL: ${{ github.repositoryUrl }}