implementing-secrets-scanning-in-ci-cd — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited implementing-secrets-scanning-in-ci-cd (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
This skill covers implementing automated secrets scanning in CI/CD pipelines using gitleaks and trufflehog. It enables security teams to detect API keys, tokens, passwords, and other credentials that have been accidentally committed to source code repositories, providing a CI gate that blocks deployments containing high-severity findings.
Gitleaks scans git repositories and directories for hardcoded secrets using regex patterns and entropy analysis. TruffleHog performs filesystem and git history scans with optional secret verification against live services. Together they provide comprehensive coverage for secrets detection.
brew install trufflehog or download from GitHub releases..gitleaks.toml configuration file in the repository root to define custom rules, allowlists, and path exclusions. Use --config flag to point to custom configs.gitleaks dir --source . --report-format json --report-path gitleaks-report.json to scan the working directory and generate a JSON report.trufflehog filesystem /path/to/repo --json > trufflehog-report.json to scan files and output JSON findings to a report file.--exit-code flag in gitleaks to control pipeline behavior.gitleaks protect --staged to catch secrets before they are committed..gitleaksignore, and rotate any confirmed leaked credentials immediately.The agent script produces a JSON report containing:
{
"scan_summary": {
"tool": "both",
"total_findings": 3,
"critical": 1,
"high": 1,
"medium": 1,
"low": 0,
"ci_gate": "FAIL",
"fail_reason": "Found 1 critical and 1 high severity findings"
},
"findings": [...]
}~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.