-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NTX-334] snyk gh integration (#253)
- Loading branch information
1 parent
202bac4
commit 0a8f9da
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: CI / snyk.io | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
- "!main" | ||
|
||
jobs: | ||
snyk: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
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 | ||
runs-on: ${{ matrix.os }} | ||
name: "${{ matrix.name }}" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: snyk/actions/setup@master | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: '1.17' | ||
|
||
- 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 |