Skip to content

Commit

Permalink
Use sarif instead of API
Browse files Browse the repository at this point in the history
  • Loading branch information
pickford-snyk committed Jun 6, 2024
1 parent aee5aaf commit 890cd7f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/snyk-vulns-to-issues.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Snyk SCM Issues to Github Issues
name: snyk-labs/action example - Snyk Issues to Github Issues
on:
push:
branches:
Expand All @@ -7,11 +7,17 @@ jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: snyk-labs/actions/scm-issues-to-gh-issues@main
- 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:
snyk_prefix: "gh-action_pickford-snyk"
use_fresh_issues: "true"
sarif_file: snyk.sarif
env:
SNYK_TOKEN: ${{ secrets.VULN_ISSUE_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
REMOTE_REPO_URL: ${{ github.repositoryUrl }}

0 comments on commit 890cd7f

Please sign in to comment.