Skip to content

Commit 26a8a41

Browse files
authored
Merge pull request #8 from vectorize-io/addTruffleHog
Try CLI mode
2 parents e1930bf + a23f81b commit 26a8a41

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/secret-scan.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
name: TruffleHog Secret Scan
1+
name: GitLeaks Security Scan
22

33
on:
44
push:
5-
branches: [ main, '**' ]
5+
branches: [ '*' ]
66
pull_request:
7-
branches: [ main, '**' ]
7+
branches: [ '*' ]
88

99
jobs:
10-
trufflehog:
10+
gitleaks:
11+
name: Secret Detection
1112
runs-on: ubuntu-latest
12-
13+
1314
steps:
1415
- name: Checkout code
1516
uses: actions/checkout@v4
16-
17-
- name: Run TruffleHog on PR diff
18-
uses: trufflesecurity/trufflehog@v3.76.0
1917
with:
20-
path: .
21-
base: ${{ github.event.pull_request.base.sha || github.event.before }}
22-
head: ${{ github.sha }}
18+
fetch-depth: 0
19+
20+
- name: Run GitLeaks
21+
uses: gitleaks/gitleaks-action@v2
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

.gitleaksignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eef9e35c47b95f2024383738859791d3d33d57bd:.github/workflows/secret-scan.yml:generic-api-key:26

0 commit comments

Comments
 (0)