-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (38 loc) · 1 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
name: CI / snyk.io
on:
push:
branches:
- "**"
- "!main"
jobs:
snyk:
runs-on: [ubuntu-latest]
strategy:
matrix:
target:
[
dependency-test,
code-test,
]
include:
- target: dependency-test
name: Snyk dependency scan
cmd: snyk test --all-projects --exclude=misc --severity-threshold=high
continue-on-error: true
- target: code-test
name: Snyk code analysis
cmd: snyk code test --severity-threshold=high
continue-on-error: false
name: "${{ matrix.name }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: snyk/actions/setup@master
- uses: actions/setup-go@v5
with:
go-version: '1.22.4'
- name: Exec ${{ matrix.target }}
env:
SNYK_TOKEN: ${{ secrets.sn_x_pub }}
SNYK_API: https://app.eu.snyk.io/api
run: ${{ matrix.cmd }} --org=nitro-x