-
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 670 Bytes
/
trufflehog.yml
File metadata and controls
29 lines (25 loc) · 670 Bytes
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
# .github/workflows/trufflehog.yml
name: TruffleHog Secret Scan
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "0 15 * * *" # Daily at 11 PM SGT (15:00 UTC)
jobs:
trufflehog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@v3.63.2
with:
path: ./
extra_args: --only-verified
- name: Check for secrets
if: failure()
run: echo "TruffleHog detected secrets or encountered a configuration error." && exit 1