Skip to content

Commit 5e97265

Browse files
committed
ci: add working gitleaks secret scanning (CLI binary, no license required)
1 parent 6308f2a commit 5e97265

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/gitleaks.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Secret Scanning
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
schedule:
9+
- cron: '0 6 * * 1'
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
gitleaks:
16+
name: Gitleaks Secret Scanning
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Run Gitleaks
25+
run: |
26+
curl -sSfL https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_linux_x64.tar.gz | tar xz
27+
./gitleaks detect --source . -v --redact

0 commit comments

Comments
 (0)