safe-repo

Detect and audit sensitive data and credentials in git-tracked files.

114|29|Updated Nov 23, 2019
One-click install
npx skills add https://github.com/helderberto/dotfiles --skill safe-repo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safe-repo
Source: https://github.com/helderberto/dotfiles/tree/main/claude/.claude/skills/safe-repo
Command: npx skills add https://github.com/helderberto/dotfiles --skill safe-repo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill detects and audits sensitive data in a repository to prevent credentials leakage and accidental exposure.

Core Features & Use Cases

  • Secret pattern scanning on git-tracked files
  • Detects .env and credential files, keys in history
  • CI-ready checks to prevent committing secrets

Quick Start

Run the safe-repo skill against your repository to perform a security audit for secrets and sensitive data.

Frequently Asked Questions about safe-repo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a git repository for leaked secrets and credentials?

To scan a git repository for leaked secrets, you can run an audit tool that searches git-tracked files using git ls-files. This process detects common credential patterns and sensitive data without exposing the actual secret values.

What is secret detection in git history and when do I need it?

Secret detection in git history involves scanning tracked files and commit logs to find accidentally committed credentials. You need it during pre-release checks, security audits, or CI pipeline integration to prevent credentials leakage.

Can I use this secret scanning approach in my CI pipeline?

Yes, you can integrate this secret scanning approach directly into your CI pipeline. It provides CI-ready checks designed to catch secrets in tracked files and history before they are committed or released, preventing accidental exposure.

Does the repository audit scan untracked files for sensitive data?

No, the repository audit does not scan untracked files. It specifically searches only git-tracked files using git ls-files to detect .env files, credential patterns, and keys in history, ensuring focused and compliant security checks.

What's the best way to prevent .env files from being committed to git?

The best way to prevent .env files from being committed is running pre-release security audits that detect credential files and common secret patterns. This identifies sensitive data in tracked files before it enters your repository history.

Will the security audit expose my actual secret values in the report?

No, the security audit will not expose your actual secret values. It detects sensitive data and credentials across the repository, reporting findings securely without printing the matched values to prevent further accidental exposure.