Skip to content

Commit 638d2f6

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

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/snyk-code.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
permissions:
11+
actions: read
12+
contents: read
13+
security-events: write
14+
steps:
15+
- uses: actions/checkout@master
16+
- name: Run Snyk to check for vulnerabilities
17+
uses: snyk/actions/gradle-jdk17@master
18+
continue-on-error: true # To make sure that SARIF upload gets called
19+
env:
20+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
21+
with:
22+
command: code test
23+
args: --sarif-file-output=snyk-code.sarif
24+
- name: Upload result to GitHub Code Scanning
25+
uses: github/codeql-action/upload-sarif@v3
26+
with:
27+
sarif_file: 'snyk-code.sarif'

0 commit comments

Comments
 (0)