-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.1 KB
/
secret.yaml
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
# Purpose: Run one or more secret scanners against the entire repo.
name: Run Secret Scan
on:
push:
workflow_dispatch:
jobs:
gitleaks:
name: Gitleaks
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Scan with Gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
truffle:
name: TruffleHog
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Scan with TruffleHog
uses: trufflesecurity/trufflehog@main
with:
extra_args: --no-verification
truffle-enterprise:
name: TruffleHog Enterprise
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all history so multiple commits can be scanned
- name: Scan with TruffleHog Enterprise
uses: trufflesecurity/TruffleHog-Enterprise-Github-Action@main
with:
args: --fail-verified ${{ github.event.repository.default_branch }} HEAD