Skip to content

Commit 0a30280

Browse files
author
Arnel Jan Sarmiento
committed
feat: Add Gitleaks configuration for secret scanning and update CI workflow to include Gitleaks license and custom config.
1 parent f5c072f commit 0a30280

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,7 @@ jobs:
5757
fetch-depth: 0
5858
- uses: gitleaks/gitleaks-action@v2
5959
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
GITHUB_TOKEN: ${{ github.token }}
61+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
62+
with:
63+
args: detect --source . --redact --no-git --config .gitleaks.toml

.gitleaks.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
title = "Durianpy gitleaks configuration"
2+
3+
# Keep this minimal: use Gitleaks' built-in rules and add only repo-specific allowlists.
4+
[extend]
5+
useDefault = true
6+
7+
[allowlist]
8+
description = "Allowlists for known non-secret patterns and generated artifacts in Durianpy infrastructure"
9+
10+
# Avoid scanning common vendor/lock artifacts and build caches in commits.
11+
paths = []

0 commit comments

Comments
 (0)