Skip to content

Commit 46fa23d

Browse files
bryanjonasclaude
andcommitted
Fix gitleaks false positive on JWT example in docs
Replace the JWT header example (eyJhbGci...) in CLAUDE.md and README.md with a plain placeholder; add .gitleaks.toml to allowlist the three historical commits that already contain it so --all scanning passes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 02a28b0 commit 46fa23d

4 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/secret-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
GITLEAKS_LOG_OPTS: --all
23+
GITLEAKS_CONFIG: .gitleaks.toml

.gitleaks.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title = "Bareclaw Gitleaks Config"
2+
3+
[allowlist]
4+
description = "Allowlist for example/placeholder values in documentation"
5+
6+
# The JWT header prefix eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 was used as a
7+
# documentation example in CLAUDE.md and README.md. It is not a real token.
8+
# Historical commits already contain this value so it must be allowlisted here.
9+
commits = [
10+
"5aec5a21cc367a97153d063dbfc23dbafe3079fc",
11+
"0dafcb4028f8c81cd4fa8bef9cb0f41d9f9430a5",
12+
"02a28b0c9fc2df3973a8951e082b684fbd73b726",
13+
]

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ bootstrap_agent: default # optional; defaults to app's default_agent
160160

161161
**`secrets/<id>.yaml`** (always gitignored — flat key/value):
162162
```yaml
163-
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
163+
token: "your-token-here"
164164
```
165165
The filename must match the superpower `id`. Consider `chmod 600 secrets/<id>.yaml`.
166166

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ bootstrap_agent: default # optional; defaults to app's default_agent
170170

171171
**`secrets/<id>.yaml`** (always gitignored — flat key/value; filename must match superpower id):
172172
```yaml
173-
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
173+
token: "your-token-here"
174174
```
175175

176176
Consider `chmod 600 secrets/<id>.yaml`. Placeholders like `{token}` in `bootstrap_prompt` are interpolated from the merged config + secrets at bootstrap time.

0 commit comments

Comments
 (0)