Skip to content

Commit 69804ab

Browse files
authored
Merge pull request #290 from hanshal101/add-synk-scans
2 parents 84c7315 + 89cac7c commit 69804ab

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/synk-scans.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
name: snyk scans
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
paths:
10+
- '.github/workflows/snyk-scans.yml'
11+
12+
jobs:
13+
snyk-scan:
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up Snyk
19+
uses: snyk/actions/setup@master
20+
env:
21+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
22+
23+
- name: Run Snyk to check for vulnerabilities
24+
run: |
25+
snyk test --all-projects \
26+
--severity-threshold=high \
27+
--exclude=docs,cmake,ext \
28+
--detection-depth=5
29+
env:
30+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
31+
continue-on-error: false
32+
33+
- name: Upload result to GitHub Code Scanning
34+
uses: github/codeql-action/upload-sarif@v2
35+
with:
36+
sarif_file: snyk.sarif

0 commit comments

Comments
 (0)