Skip to content

Commit 8254ccb

Browse files
committed
actions: Add security with snyk
Signed-off-by: Enrique Llorente <[email protected]>
1 parent 129b149 commit 8254ccb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/security.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check and report security issues
2+
on:
3+
push:
4+
pull_request:
5+
branches: [ main ]
6+
jobs:
7+
security:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- name: Run Snyk to check for vulnerabilities
12+
uses: snyk/actions/golang@master
13+
continue-on-error: true # To make sure that SARIF upload gets called
14+
env:
15+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
16+
with:
17+
args: --sarif-file-output=snyk.sarif
18+
- name: Upload result to GitHub Code Scanning
19+
uses: github/codeql-action/upload-sarif@v3
20+
with:
21+
sarif_file: snyk.sarif

0 commit comments

Comments
 (0)