Skip to content

Commit baebed1

Browse files
Anubhav-2003claude
andcommitted
chore: stop committing .claude/settings.local.json
Claude Code saves each command you approve, keys included, in .claude/settings.local.json, so the file is meant for one person's machine. Remove it from git and ignore it (gglint secrets --fix), and run gglint secrets before each commit and on pull requests so it doesn't come back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f8285d6 commit baebed1

6 files changed

Lines changed: 45 additions & 9 deletions

File tree

‎.claude/settings.local.json‎

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Agent secrets
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
gglint:
11+
name: gglint secrets
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
15+
with:
16+
persist-credentials: false
17+
- uses: corridor/gglint@fb36ea3940f571edc5a1cab08cd155401b46d3a4 # v0.5.1
18+
with:
19+
command: secrets
20+
comment: "false"

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ package
8484

8585
# Build outputs of scripts/test-patch-core.sh and scripts/test-update-flow-core.sh
8686
.tmp/
87+
.claude/settings.local.json

‎.husky/pre-commit‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# gglint: no secrets in agent config files
2+
bun run gglint secrets --staged

‎bun.lock‎

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
"test:android-release": "cd Example/e2etest && E2E_PLATFORM=android bunx detox test --configuration android.emu.release --headless --record-logs all",
6868
"smoke:android-debug": "cd Example/e2etest && bunx detox test --configuration android.emu.debug --config e2e/smoke/jest.config.js",
6969
"e2e:ios": "bun build:ios-release && bun test:ios-release",
70-
"e2e:android": "bun build:android-release && bun test:android-release"
70+
"e2e:android": "bun build:android-release && bun test:android-release",
71+
"prepare": "husky"
7172
},
7273
"repository": {
7374
"type": "git",
@@ -110,11 +111,13 @@
110111
},
111112
"devDependencies": {
112113
"@biomejs/biome": "^2.5.5",
114+
"@gglint/cli": "0.5.1",
113115
"@react-native/typescript-config": "0.85.2",
114116
"@types/bun": "^1.3.11",
115117
"@types/node": "^25.5.0",
116118
"@types/react": "^19.2.14",
117119
"@types/react-test-renderer": "19.1.0",
120+
"husky": "9.1.7",
118121
"react": "19.2.3",
119122
"react-native": "0.85.2",
120123
"react-test-renderer": "19.2.3",

0 commit comments

Comments
 (0)