Use sarif instead of API #8
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-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 }} |