Skip to content

Commit 229f5fc

Browse files
committed
ci(gitleaks): migrate from custom config to .gitleaksignore allowlist
Replace the custom `.gitleaksconfig.toml` (which extended the default gitleaks config and defined path-based allowlists) with a `.gitleaksignore` file that allowlists specific fingerprints for known curl auth header occurrences in docker-compose and test scripts. Remove the `GITLEAKS_CONFIG` env var from the GitHub Actions workflow, allowing gitleaks to use its built-in defaults and pick up the new `.gitleaksignore` automatically.
1 parent 335de9c commit 229f5fc

3 files changed

Lines changed: 9 additions & 40 deletions

File tree

.github/workflows/gitleaks.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ jobs:
2121
- uses: gitleaks/gitleaks-action@v2
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
GITLEAKS_CONFIG: .gitleaksconfig.toml

.gitleaksconfig.toml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.gitleaksignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
docker-compose.cluster.yml:curl-auth-header:14
2+
docker-compose.cluster.yml:curl-auth-header:16
3+
docker-compose.cluster.yml:curl-auth-header:17
4+
scripts/tests/10-test-cluster-api.sh:curl-auth-header:6
5+
scripts/tests/10-test-cluster-api.sh:curl-auth-header:13
6+
scripts/tests/10-test-cluster-api.sh:curl-auth-header:19
7+
scripts/tests/10-test-cluster-api.sh:curl-auth-header:26
8+
scripts/tests/10-test-cluster-api.sh:curl-auth-header:32
9+
scripts/tests/10-test-cluster-api.sh:curl-auth-header:36

0 commit comments

Comments
 (0)