mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-22 06:18:51 +00:00
Adding Snyk to CI (#414)
This commit is contained in:
parent
67593345a7
commit
f49e29045c
42
.github/workflows/security_validation.yml
vendored
Normal file
42
.github/workflows/security_validation.yml
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
name: Security validation
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'develop'
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
security:
|
||||
name: Check for vulnerabilities
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: snyk/actions/setup@master
|
||||
- name: Set up Go 1.16
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.16'
|
||||
|
||||
- name: CLI
|
||||
working-directory: ./cli
|
||||
run: snyk test
|
||||
|
||||
- name: Agent
|
||||
working-directory: ./agent
|
||||
run: snyk test
|
||||
|
||||
- name: Shared
|
||||
working-directory: ./shared
|
||||
run: snyk test
|
||||
|
||||
- name: Tap
|
||||
working-directory: ./tap
|
||||
run: snyk test
|
||||
|
||||
- name: UI
|
||||
working-directory: ./ui
|
||||
run: snyk test
|
Loading…
Reference in New Issue
Block a user