Create snyk.yml
This commit is contained in:
parent
3e0f8aed30
commit
9e9e716369
1 changed files with 18 additions and 0 deletions
18
.github/workflows/snyk.yml
vendored
Normal file
18
.github/workflows/snyk.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name: Snyk
|
||||||
|
on: push
|
||||||
|
jobs:
|
||||||
|
security:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Run Snyk to check for vulnerabilities
|
||||||
|
uses: snyk/actions/maven-3-jdk-11@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@v1
|
||||||
|
with:
|
||||||
|
sarif_file: snyk.sarif
|
Loading…
Reference in a new issue