-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.03 KB
/
snyk_iac_scan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Snyk IaC scan
on:
push:
branches:
- main
jobs:
security:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: true
matrix:
org: [personal, work]
include:
- org: personal
snyk_token: SNYK_TOKEN_WINTLTR
- org: work
snyk_token: SNYK_TOKEN
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
id: snyk_scan
uses: snyk/actions/iac@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets[matrix.snyk_token] }}
with:
args: --sarif-file-output=snyk.sarif --target-name=keebackup_iac --report
command: test
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
- name: Run random commands
run: |
echo ${{ matrix.org }}
echo ${{ matrix.snyk_token }}