Skip to content

Commit

Permalink
Merge pull request #290 from hanshal101/add-synk-scans
Browse files Browse the repository at this point in the history
  • Loading branch information
yonch authored Feb 8, 2025
2 parents 84c7315 + 89cac7c commit 69804ab
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/synk-scans.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

name: snyk scans

on:
push:
branches:
- main
pull_request:
paths:
- '.github/workflows/snyk-scans.yml'

jobs:
snyk-scan:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Set up Snyk
uses: snyk/actions/setup@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

- name: Run Snyk to check for vulnerabilities
run: |
snyk test --all-projects \
--severity-threshold=high \
--exclude=docs,cmake,ext \
--detection-depth=5
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
continue-on-error: false

- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif

0 comments on commit 69804ab

Please sign in to comment.