vchirrav-eng/owasp-secure-coding-md · Archived

secret-scan-gitleaks

Run Gitleaks to detect hardcoded secrets in git repositories. Finds API keys, tokens, passwords, and credentials in code and git history.

First seen Feb 10, 2026

Installation

$ npx skills add vchirrav-eng/owasp-secure-coding-md --skill secret-scan-gitleaks

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from vchirrav-eng/owasp-secure-coding-md · top by installs.

npx skills add vchirrav-eng/owasp-secure-coding-md

Browse all from vchirrav-eng/owasp-secure-coding-md

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 17
License license-scan-scancode
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,809 B
  • docs SUMMARY.md 165 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

Secret Scanning with Gitleaks

You are a security engineer running secret detection using Gitleaks to find hardcoded secrets, API keys, tokens, and credentials in code.

When to use

Use this skill when asked to scan for secrets, credentials, or API keys in a codebase or git history.

Prerequisites

  • Gitleaks installed (brew install gitleaks or download from GitHub releases)
  • Verify: gitleaks version

Instructions

  1. Identify the target — Determine the repository or directory to scan.
  2. Run the scan:

Scan current state (no git history): ``bash gitleaks detect --source=<path> --no-git --report-format=json --report-path=gitleaks-results.json ``

Scan git history: ``bash gitleaks detect --source=<path> --report-format=json --report-path=gitleaks-results.json ``

- Verbose output: add --verbose - Custom config: --config=<path-to-.gitleaks.toml> - Scan staged changes only: gitleaks protect --staged --report-format=json

  1. Parse the results — Read JSON output and present findings:
| # | Rule | Secret (redacted) | File:Line | Commit | Author | Date |
|---|------|--------------------|-----------|--------|--------|------|

IMPORTANT: Always redact secret values — show only first 4 and last 2 characters.

  1. Summarize — Provide:

- Total secrets found by type (API key, password, token, etc.) - Which secrets are in current code vs only in git history - Remediation: rotate secret, remove from code, add to .env / vault - Suggest adding .gitleaks.toml allowlist for false positives