Create snyk.yml

This commit is contained in:
Bruno Oliveira da Silva 2021-08-17 20:10:37 -03:00 committed by GitHub
parent 3e0f8aed30
commit 9e9e716369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
.github/workflows/snyk.yml vendored Normal file
View 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