---
title: "Discussion on \"Claude Code's \"Don't Ask Again\" Secrets: The Git-Exclude Gap, What Scanners Miss, and a Pre-Commit Fix\" | Hashnode"
description: "Discussion on \"Claude Code's \"Don't Ask Again\" Secrets: The Git-Exclude Gap, What Scanners Miss, and a Pre-Commit Fix\". Apiiro found 1,122 public .claude/settings.local.json files holding secrets. I reproduced why the global git exclude doesn't travel, what gitleaks/TruffleHog miss on command-embedded passwords, and a rule-aware pre-commit check. Fake secrets only."
url: "https://hashnode.com/posts/claude-code-s-don-t-ask-again-secrets-the-git-exclude-gap-what-scanners-miss-and-a-pre-commit-fix/6af1d5fbbd09650ca1882a77"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Claude Code's "Don't Ask Again" Secrets: The Git-Exclude Gap, What Scanners Miss, and a Pre-Commit Fix](https://yongboyu.hashnode.dev/claude-code-s-don-t-ask-again-secrets-the-git-exclude-gap-what-scanners-miss-and-a-pre-commit-fix?utm_source=hashnode&utm_medium=feed)

Apiiro found 1,122 public .claude/settings.local.json files holding secrets. I reproduced why the global git exclude doesn't travel, what gitleaks/TruffleHog miss on command-embedded passwords, and a rule-aware pre-commit check. Fake secrets only.

Nov 9 · 8 min read · yongboyu.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#ai](https://hashnode.com/tag/ai)
-   [#security](https://hashnode.com/tag/security)
-   [#claude](https://hashnode.com/tag/claude)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[Yong Yu](https://hashnode.com/@yongbo)

@yongbo

  
[View profile](https://hashnode.com/@yongbo)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
