Skip to content

Commit 2c76b29

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Gihub Actions] Snyk Open Source analysis added. Sarif output enabled.
1 parent b62a334 commit 2c76b29

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/snyk-code.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
3+
name: Snyk Code (Java gradle-jdk17)
4+
5+
on: push # yamllint disable-line rule:truthy
6+
7+
jobs:
8+
security:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Run Snyk to check for vulnerabilities
13+
uses: snyk/actions/gradle-jdk17@master
14+
continue-on-error: true # To make sure that SARIF upload gets called
15+
env:
16+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
17+
with:
18+
command: code test
19+
args: --sarif-file-output=snyk-code.sarif
20+
- name: Upload result to GitHub Code Scanning
21+
uses: github/codeql-action/upload-sarif@v3
22+
with:
23+
sarif_file: 'snyk-code.sarif'

0 commit comments

Comments
 (0)