-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 2.42 KB
/
snyk.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# name: Snyk Scan
# on:
# push:
# branches:
# - develop
# - releases/**
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+'
# pull_request:
# types: ['opened', 'synchronize']
# jobs:
# security:
# runs-on: ubuntu-latest
# steps:
# - id: checkout
# name: Checkout
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# # appsec wants specific naming rules for target scans, see https://teradata-infosec.atlassian.net/l/cp/t1ap1PS7
# - name: Run Snyk on release tags to check for iac vulnerabilities and upload all results to snyk
# uses: snyk/actions/iac@master
# continue-on-error: true
# if: github.ref_type == 'tag'
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# command: test # monitor // currently only test is supported
# args: --target-reference=release_${{ github.ref_name }}
# # appsec wants specific naming rules for target scans, see https://teradata-infosec.atlassian.net/l/cp/t1ap1PS7
# - name: Run Snyk on release branches to check for iac vulnerabilities and upload all results to snyk
# uses: snyk/actions/iac@master
# continue-on-error: true
# if: github.ref_type == 'branch' && startsWith(github.ref_name, 'releases/')
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# command: test # monitor // currently only test is supported
# args: --target-reference=release_${{ github.ref_name }}
# # appsec wants specific naming rules for target scans, see https://teradata-infosec.atlassian.net/l/cp/t1ap1PS7
# - name: Run Snyk on develop branch to check for iac vulnerabilities and upload all results to snyk
# uses: snyk/actions/iac@master
# continue-on-error: true
# if: github.ref_type == 'branch' && ( github.ref_name == 'develop' || github.ref_name == 'main' )
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# command: test # monitor // currently only test is supported
# args: --target-reference=develop_${{ github.ref_name }}
# - name: Run Snyk to check for high or critical iac vulnerabilities only, fail if found
# uses: snyk/actions/iac@master
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# command: test
# args: --severity-threshold=high