Skip to content

Commit

Permalink
Merge pull request #19 from fireblocks/COR-18756-snyk-workflow
Browse files Browse the repository at this point in the history
Add Snyk workflow
  • Loading branch information
YoavBZ authored Nov 6, 2022
2 parents 808d101 + fd859ad commit 43ad263
Show file tree
Hide file tree
Showing 3 changed files with 6,387 additions and 41 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.RELEASE_TOKEN }}
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
registry-url: 'https://registry.npmjs.org/'
- run: npm install
- run: |
initialTag=${{ github.event.release.tag_name }}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Snyk Container

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
snyk:
permissions:
contents: read
security-events: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif
continue-on-error: true
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
Loading

0 comments on commit 43ad263

Please sign in to comment.