---
name: scan-repositories-for-committed-local-settings-secrets
description: "Find credential-bearing config files in source control before they spread. Review repositories for local coding-agent settings files that were committed by mistake and may contain approved commands with embedded credentials."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Terminal, Slack."
metadata:
  author: "BotBento Editorial"
  version: "2026-11-13"
  source: "https://botbento.com/usecases/scan-repositories-for-committed-local-settings-secrets/"
  kind: workflow
  hermes:
    tags: ["security", "secrets", "github", "scanning", "repo-hygiene"]
    category: ops
---
# Scan repositories for committed local settings secrets

Find credential-bearing config files in source control before they spread

## When to use

Review repositories for local coding-agent settings files that were committed by mistake and may contain approved commands with embedded credentials. Triage each match, redact sensitive values, and prepare a report so maintainers can remove exposure and add ignore rules.

## Steps

1. On a schedule: Daily repository scan
2. Search for committed local settings
3. Secret exposure report

## Instructions

On a daily schedule, search the approved GitHub organization for committed local settings files used by coding agents. Inspect matches for command strings that appear to contain passwords, tokens, keys, or other credentials. Redact secret values in all notes and reports, and rank findings by likely exposure and ease of remediation. Produce a report listing repository, file path, risk summary, and suggested cleanup steps. Wait for user approval before sending alerts, posting to channels, making purchases, deleting files, rewriting history, changing repository settings, or contacting maintainers. Never commit changes without explicit approval.

## Source

Summarized in our own words from [Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files](https://news.ycombinator.com/item?id=50407882) (Hacker News, checked 2026-11-13). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/scan-repositories-for-committed-local-settings-secrets/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
