Skip to content

Commit 82849c9

Browse files
committed
ci(workflow): Add secrets check workflow
- Introduce a GitHub Actions workflow for secrets scanning - Trigger on workflow dispatch, pull requests, and pushes - Use TruffleHog for secret scanning with debug options - Ensure the latest code is checked out before scanning
1 parent 8b9ec75 commit 82849c9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/secret-check.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: secrets check
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
8+
jobs:
9+
security-check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
# ref: ${{ github.ref_name }}
16+
fetch-depth: 0
17+
- name: Secret Scanning
18+
uses: trufflesecurity/trufflehog@v3
19+
with:
20+
# path: ./
21+
# base: ${{ github.event.repository.default_branch }}
22+
# head: ${{ github.ref_name }}
23+
extra_args: --debug --only-verified --results=verified,unknown

0 commit comments

Comments
 (0)