Skip to content

Commit

Permalink
[NTX-334] snyk gh integration (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseinEmrani authored Jul 14, 2023
1 parent 202bac4 commit 0a8f9da
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/snyk.yml
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

0 comments on commit 0a8f9da

Please sign in to comment.