forked from snyk-labs/nodejs-goof
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (40 loc) · 1.1 KB
/
truffle-secrets-BC-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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Truffle Security Secrets Scanner
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: TruffhleHog Secret Scanning
id: trufflehog
uses: trufflesecurity/trufflehog@main
with:
extra_args: --only-verified
continue-on-error: true
- name: Authenticate Snyk
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN_2 }}
with:
command: auth
continue-on-error: true
- name: Monitor TruffleHog identified secrets with Snyk
uses: snyk/actions/node@master
with:
command: monitor
continue-on-error: true
#With Enterprise Plan
- name: Send results to Snyk
run: |
curl --request GET \
--url "https://api.snyk.io/rest/orgs/{ORG_ID}/projects?version=2024-06-10" \
--header "Content-Type: application/vnd.api+json" \
--header "Authorization: token API_TOKEN"
continue-on-error: true