Skip to content

Use sarif instead of API #8

Use sarif instead of API

Use sarif instead of API #8

name: snyk-labs/action example - Snyk Issues to Github Issues
on:
push:
branches:
- custom-config
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: snyk/actions/setup@master
- uses: actions/setup-node@v1
- name: snyk test
run: snyk test --all-projects --severity-threshold=high --sarif-file-output=snyk.sarif
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- uses: snyk-labs/actions/sarif-to-gh-issues@main
with:
sarif_file: snyk.sarif
env:
GITHUB_TOKEN: ${{ github.token }}
REMOTE_REPO_URL: ${{ github.repositoryUrl }}