Skip to content

Commit 04da997

Browse files
author
Noveris-Teams
committed
fix(security): allow Feishu frontmatter tokens in gitleaks
1 parent 8fde9c5 commit 04da997

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/security-hardening.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
uses: gitleaks/gitleaks-action@v2
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
GITLEAKS_CONFIG: gitleaks.toml
2930

3031
dependency-audit:
3132
name: Dependency Audit (high+)

gitleaks.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
title = "Noveris-AI gitleaks config"
2+
3+
[extend]
4+
useDefault = true
5+
6+
[[rules]]
7+
id = "generic-api-key"
8+
9+
[[rules.allowlists]]
10+
description = "Allow Feishu CMS document tokens stored in post frontmatter"
11+
regexTarget = "line"
12+
regexes = [
13+
'''^feishuToken:\s*"[A-Za-z0-9_-]{20,}"\s*$'''
14+
]

0 commit comments

Comments
 (0)