Skip to content

Commit

Permalink
chore: new action
Browse files Browse the repository at this point in the history
  • Loading branch information
rgwozdz committed Aug 23, 2023
1 parent 416edc6 commit 9388a52
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/snyk-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:


- name: Snyk Dep test
run: snyk code test --all-projects || true
run: snyk test --all-projects || true
env:
# This is where you will need to introduce the Snyk API token created with your Snyk account
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/synk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Example workflow for Node using Snyk
on: push
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- 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:
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif

0 comments on commit 9388a52

Please sign in to comment.