Skip to content

Commit d5c57ec

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] Snyk Code analysis added.
1 parent 32d9ffb commit d5c57ec

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/snyk-code.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
3+
name: Snyk Code analysis
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
branches: ["main", "develop", "feature/*"]
8+
pull_request:
9+
branches: ["main"]
10+
11+
jobs:
12+
security:
13+
runs-on: ubuntu-latest
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+
args: --sarif-file-output=snyk.sarif
23+
# yamllint disable rule:comments-indentation
24+
# - name: Upload result to GitHub Code Scanning
25+
# uses: github/codeql-action/upload-sarif@v2
26+
# with:
27+
# sarif_file: snyk.sarif
28+
# yamllint enable rule:comments-indentation

0 commit comments

Comments
 (0)