-
Notifications
You must be signed in to change notification settings - Fork 19
38 lines (32 loc) · 1.02 KB
/
snyk-cli-scan.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
name: 🔬 Snyk cli SCA
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
SNYK_SEVERITY_THRESHOLD_LEVEL: high
jobs:
snyk-cli-scan:
runs-on: ubuntu-latest
if: ${{ false }} # temporarily disabled
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: prepare for snyk scan
uses: datastax/shared-github-actions/actions/snyk-prepare@main
- name: snyk scan go
uses: datastax/shared-github-actions/actions/snyk-scan-go@main
with:
go-version: 1.17
directories: .
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}
serivce_gh_token: ${{ secrets.GB_TOKEN }}
- name: Snyk scan result
uses: datastax/shared-github-actions/actions/snyk-process-scan-results@main
with:
gh_repo_token: ${{ secrets.GITHUB_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}