Skip to content

Commit e1930bf

Browse files
authored
Merge pull request #7 from vectorize-io/addTruffleHog
Add trufflehog to CI for every push + PR
2 parents 83413ac + 84bc96a commit e1930bf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/secret-scan.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: TruffleHog Secret Scan
2+
3+
on:
4+
push:
5+
branches: [ main, '**' ]
6+
pull_request:
7+
branches: [ main, '**' ]
8+
9+
jobs:
10+
trufflehog:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Run TruffleHog on PR diff
18+
uses: trufflesecurity/trufflehog@v3.76.0
19+
with:
20+
path: .
21+
base: ${{ github.event.pull_request.base.sha || github.event.before }}
22+
head: ${{ github.sha }}

0 commit comments

Comments
 (0)