{"_id":"gitleaks-secret-scanner-fixed","_rev":"7-576440c6d06ce33827d3b5e9f39f7cf9","name":"gitleaks-secret-scanner-fixed","dist-tags":{"latest":"3.1.0"},"versions":{"2.1.3":{"name":"gitleaks-secret-scanner-fixed","version":"2.1.3","keywords":["security","gitleaks","pre-commit","secrets-scanning","git-hooks","toml"],"author":{"name":"Vijay Kumar"},"license":"MIT","_id":"gitleaks-secret-scanner-fixed@2.1.3","maintainers":[{"name":"mavox","email":"stringmymail@gmail.com"}],"contributors":[{"name":"Artur Polishchuk","email":"artur@mybono.com"}],"homepage":"https://github.com/Mybono/gitleaks-secret-scanner#readme","bugs":{"url":"https://github.com/Mybono/gitleaks-secret-scanner/issues"},"bin":{"gitleaks-secret-scanner":"bin/cli.js"},"dist":{"shasum":"f3f3fb8b8b81866721fb09fe259ace2a764d4357","tarball":"https://registry.npmjs.org/gitleaks-secret-scanner-fixed/-/gitleaks-secret-scanner-fixed-2.1.3.tgz","fileCount":15,"integrity":"sha512-QRqwbRYm73Adwx8qQU+rFdfj3SttWctyR5dAl67vehYdH4Vj0HsKrTb16g8ew0j04Q1Kx9OfT1sLMd4qfuZaWA==","signatures":[{"sig":"MEQCIFdQMXOJd2fI9SVkGiDwQfKFfb113lHsyT/0Tz9bqrM/AiBRcQAIWECWPR0SDK13a0iTVdBsQ8Bg/cv5Pzuw39nIRA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":187087},"main":"bin/cli.js","engines":{"node":">=18"},"gitHead":"f5e961a0ce3c66d7d52b7744bfdd27c26ad10893","scripts":{"postinstall":"node bin/set-permissions.js && node bin/postinstall.js","preuninstall":"node bin/preuninstall.js"},"_npmUser":{"name":"mavox","email":"stringmymail@gmail.com"},"repository":{"url":"git+https://github.com/Mybono/gitleaks-secret-scanner.git","type":"git"},"_npmVersion":"11.6.3","description":"A powerful, intelligent wrapper for the Gitleaks engine that provides accurate and safe secret scanning for local pre-commit hooks and CI/CD pipelines. Fork with fixed tar vulnerability.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"tar":"^7.5.7","toml":"^3.0.0","axios":"^1.11.0","fs-extra":"^11.2.0","unzipper":"^0.12.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"husky":">=9.0.0"},"peerDependenciesMeta":{"husky":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gitleaks-secret-scanner-fixed_2.1.3_1769874511376_0.04213693003543817","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"gitleaks-secret-scanner-fixed","version":"2.2.0","keywords":["security","gitleaks","pre-commit","secrets-scanning","git-hooks","toml"],"author":{"name":"Vijay Kumar"},"license":"MIT","_id":"gitleaks-secret-scanner-fixed@2.2.0","maintainers":[{"name":"mavox","email":"stringmymail@gmail.com"}],"contributors":[{"name":"Artur Polishchuk","email":"artur@mybono.com"}],"homepage":"https://github.com/Mybono/gitleaks-secret-scanner#readme","bugs":{"url":"https://github.com/Mybono/gitleaks-secret-scanner/issues"},"bin":{"gitleaks-secret-scanner":"bin/cli.js"},"dist":{"shasum":"7ab5b1b1cd5dba47e9f70e49ca8f0b94e8db66bc","tarball":"https://registry.npmjs.org/gitleaks-secret-scanner-fixed/-/gitleaks-secret-scanner-fixed-2.2.0.tgz","fileCount":15,"integrity":"sha512-zVj69dheyyhd2ycu5yR5M1cTufZtEdaluWLFhjaTrd3pYOob2hVr25XLKrm5pak19XODOcdCA0GqTcKF02+Cow==","signatures":[{"sig":"MEUCIECdI644697dEVwO5415Id+QjybPcDvW/dbTZPwtuSu0AiEAh5G4cSEy6ABHcYAwxRiGewsgHy5Rd/AEEfT50GpXfXg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":187039},"main":"bin/cli.js","engines":{"node":">=20"},"gitHead":"8d45d95d1a348faa25bd62563fef52c1817423f9","scripts":{"postinstall":"node bin/set-permissions.js && node bin/postinstall.js","preuninstall":"node bin/preuninstall.js"},"_npmUser":{"name":"mavox","email":"stringmymail@gmail.com","approver":{"name":"mavox","email":"stringmymail@gmail.com"}},"repository":{"url":"git+https://github.com/Mybono/gitleaks-secret-scanner.git","type":"git"},"_npmVersion":"12.1.0","description":"A powerful, intelligent wrapper for the Gitleaks engine that provides accurate and safe secret scanning for local pre-commit hooks and CI/CD pipelines. Fork with fixed tar vulnerability.","directories":{},"_nodeVersion":"24.16.0","dependencies":{"tar":"^7.5.22","toml":"^4.1.2","axios":"^1.18.1","fs-extra":"^11.2.0","unzipper":"^0.12.3"},"_hasShrinkwrap":false,"peerDependencies":{"husky":">=9.0.0"},"peerDependenciesMeta":{"husky":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gitleaks-secret-scanner-fixed_2.2.0_1790597180352_0.670340426343905","host":"s3://npm-registry-packages-npm-production"}},"3.0.3":{"name":"gitleaks-secret-scanner-fixed","version":"3.0.3","keywords":["security","gitleaks","pre-commit","secrets-scanning","git-hooks","toml"],"author":{"name":"Artur Polishchuk"},"license":"MIT","_id":"gitleaks-secret-scanner-fixed@3.0.3","maintainers":[{"name":"mavox","email":"stringmymail@gmail.com"}],"homepage":"https://github.com/Mybono/gitleaks-secret-scanner#readme","bugs":{"url":"https://github.com/Mybono/gitleaks-secret-scanner/issues"},"bin":{"gitleaks-secret-scanner":"dist/bin/cli.js"},"dist":{"shasum":"b5ee1c301e93e5cdb9bfd3581da5b28b77667049","tarball":"https://registry.npmjs.org/gitleaks-secret-scanner-fixed/-/gitleaks-secret-scanner-fixed-3.0.3.tgz","fileCount":32,"integrity":"sha512-j7cKwmZYmkeixE1danLi3GBq40PGMDGsxeXxBYQ35kyKa+ThcVeedt2lzTIoH4inFZsH4fG5vUqiwchXxalDnw==","signatures":[{"sig":"MEUCIHix8KxvoQiR/bvU75Jedpm5GijskMPMWP4Eq4HG7jMIAiEAg3K13EOU3RtiAfb6MKUKArwdf1QB0a+Lr6HHaTWBRXs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIDO0u+vAalVnv1eotXP1x+T7c5hlQb/wqtraiVQVA+9lAiAM8yxznS4gLtdlcm3ojRHaCm3IKCFV4OaiEJbHyxas/Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":239395},"main":"dist/bin/cli.js","type":"module","engines":{"node":">=20"},"gitHead":"d39ab8b15193da0ae9f6389c644c50b00bcc4db3","scripts":{"test":"node --import tsx --test test/**/*.test.ts","build":"tsc","check":"pr-checkmate all","prepack":"npm run build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","postinstall":"node scripts/postinstall.cjs","preuninstall":"node scripts/preuninstall.cjs"},"_npmUser":{"name":"mavox","email":"stringmymail@gmail.com"},"overrides":{"conventional-changelog-angular":"8.3.1"},"repository":{"url":"git+https://github.com/Mybono/gitleaks-secret-scanner.git","type":"git"},"_npmVersion":"12.1.0","description":"A TypeScript wrapper for the Gitleaks engine providing accurate, safe secret scanning for local pre-commit hooks and CI/CD pipelines.","directories":{},"_nodeVersion":"24.21.0","dependencies":{"tar":"^7.5.22","toml":"^5.0.0","fs-extra":"^11.2.0","unzipper":"^0.12.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^6.0.3","@types/node":"^26.6.3","pr-checkmate":"3.0.2","@types/fs-extra":"^11.0.4","conventional-changelog-cli":"^5.0.0"},"peerDependencies":{"husky":">=9.0.0"},"peerDependenciesMeta":{"husky":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gitleaks-secret-scanner-fixed_3.0.3_1790607269457_0.613028106917151","host":"s3://npm-registry-packages-npm-production"}},"3.0.4":{"name":"gitleaks-secret-scanner-fixed","version":"3.0.4","keywords":["security","gitleaks","pre-commit","secrets-scanning","git-hooks","toml"],"author":{"name":"Artur Polishchuk"},"license":"MIT","_id":"gitleaks-secret-scanner-fixed@3.0.4","maintainers":[{"name":"mavox","email":"stringmymail@gmail.com"}],"homepage":"https://github.com/Mybono/gitleaks-secret-scanner#readme","bugs":{"url":"https://github.com/Mybono/gitleaks-secret-scanner/issues"},"bin":{"gitleaks-secret-scanner":"dist/bin/cli.js"},"dist":{"shasum":"8673ca651dc56e11b211e87c6ff0713f798283d0","tarball":"https://registry.npmjs.org/gitleaks-secret-scanner-fixed/-/gitleaks-secret-scanner-fixed-3.0.4.tgz","fileCount":32,"integrity":"sha512-UxNQSWIcSIux7M6Ue/pcEDz+E/UQVicvpoa/a5TCq6PD32B3sSNe3WY7wIpiyddpJIUImF2gFkQbWM+wZQrKFQ==","signatures":[{"sig":"MEQCIEAZR6FGGe9XbsiI02apdboQDoGx05KaOoVoTzoNPfMWAiAm/+TCJt4lCatE4WwRP475lYsI9Xzc/6fVzHcezicw2g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIASP5uwrYUNs5iHKKoVk0AOtRlnsjEDFN0ujPXtXqpokAiABs40Sx5dC5JCdqj5YgOEJc3uaoYJ5lkauF8U3sRY+Xw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":239370},"main":"dist/bin/cli.js","type":"module","engines":{"node":">=20"},"gitHead":"e04d20513ffc4a60c152eae6a0cd63af3d0950ce","scripts":{"test":"node --import tsx --test test/**/*.test.ts","build":"tsc","check":"npx pr-checkmate all","prepack":"npm run build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","postinstall":"node scripts/postinstall.cjs","preuninstall":"node scripts/preuninstall.cjs"},"_npmUser":{"name":"mavox","email":"stringmymail@gmail.com"},"overrides":{"conventional-changelog-angular":"8.3.1"},"repository":{"url":"git+https://github.com/Mybono/gitleaks-secret-scanner.git","type":"git"},"_npmVersion":"12.1.0","description":"A TypeScript wrapper for the Gitleaks engine providing accurate, safe secret scanning for local pre-commit hooks and CI/CD pipelines.","directories":{},"_nodeVersion":"24.21.0","dependencies":{"tar":"^7.5.22","toml":"^5.0.0","fs-extra":"^11.2.0","unzipper":"^0.12.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^6.0.3","@types/node":"^26.6.3","@types/fs-extra":"^11.0.4","conventional-changelog-cli":"^5.0.0"},"peerDependencies":{"husky":">=9.0.0"},"peerDependenciesMeta":{"husky":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gitleaks-secret-scanner-fixed_3.0.4_1790617256239_0.45252858281025476","host":"s3://npm-registry-packages-npm-production"}},"3.0.5":{"name":"gitleaks-secret-scanner-fixed","version":"3.0.5","keywords":["security","gitleaks","pre-commit","secrets-scanning","git-hooks","toml"],"author":{"name":"Artur Polishchuk"},"license":"MIT","_id":"gitleaks-secret-scanner-fixed@3.0.5","maintainers":[{"name":"mavox","email":"stringmymail@gmail.com"}],"homepage":"https://github.com/Mybono/gitleaks-secret-scanner#readme","bugs":{"url":"https://github.com/Mybono/gitleaks-secret-scanner/issues"},"bin":{"gitleaks-secret-scanner":"dist/bin/cli.js"},"dist":{"shasum":"1cb192e5a985a9a3b86e994096b13ee9357e8cf3","tarball":"https://registry.npmjs.org/gitleaks-secret-scanner-fixed/-/gitleaks-secret-scanner-fixed-3.0.5.tgz","fileCount":32,"integrity":"sha512-jINvZjnhlXyIXhrst5pjwnIhkGEXhfdQffYn2734bMJJXqjlpRo8kT9cjAJAhiAkeWiKstFViyHMFZGuWTiR2Q==","signatures":[{"sig":"MEUCIBBdBelP6ho4lkSEp0LkEqqa0xJ+HKDEi6fb47Ek30/vAiEAq9t7SGws6CVp3A9J4a/adOZdItvVY/zOXhJhdpaDpD0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCICoD8MC/tWbibi41wmeJudD9MapVXqpse1jJW+Ll6iywAiARHFqL4vIL5hS+3D+Tw3FzTNf/YnLXHbjVNCX+937G4g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":239370},"main":"dist/bin/cli.js","type":"module","engines":{"node":">=20"},"gitHead":"45d16e314af6bd6001b898a3af05baa75c54a3cb","scripts":{"test":"node --import tsx --test test/**/*.test.ts","build":"tsc","check":"npx pr-checkmate all","prepack":"npm run build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","postinstall":"node scripts/postinstall.cjs","preuninstall":"node scripts/preuninstall.cjs"},"_npmUser":{"name":"mavox","email":"stringmymail@gmail.com"},"overrides":{"conventional-changelog-angular":"8.3.1"},"repository":{"url":"git+https://github.com/Mybono/gitleaks-secret-scanner.git","type":"git"},"_npmVersion":"12.2.1","description":"A TypeScript wrapper for the Gitleaks engine providing accurate, safe secret scanning for local pre-commit hooks and CI/CD pipelines.","directories":{},"_nodeVersion":"24.22.1","dependencies":{"tar":"^7.5.22","toml":"^5.0.1","fs-extra":"^11.2.0","unzipper":"^0.12.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^6.0.3","@types/node":"^26.6.3","@types/fs-extra":"^11.0.4","conventional-changelog-cli":"^5.0.0"},"peerDependencies":{"husky":">=9.0.0"},"peerDependenciesMeta":{"husky":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gitleaks-secret-scanner-fixed_3.0.5_1793626236102_0.3360637151008201","host":"s3://npm-registry-packages-npm-production"}},"3.0.6":{"name":"gitleaks-secret-scanner-fixed","version":"3.0.6","keywords":["security","gitleaks","pre-commit","secrets-scanning","git-hooks","toml"],"author":{"name":"Artur Polishchuk"},"license":"MIT","_id":"gitleaks-secret-scanner-fixed@3.0.6","maintainers":[{"name":"mavox","email":"stringmymail@gmail.com"}],"homepage":"https://github.com/Mybono/gitleaks-secret-scanner#readme","bugs":{"url":"https://github.com/Mybono/gitleaks-secret-scanner/issues"},"bin":{"gitleaks-secret-scanner":"dist/bin/cli.js"},"dist":{"shasum":"4b2de4b042b842ff16edad628e3a8641c767efbd","tarball":"https://registry.npmjs.org/gitleaks-secret-scanner-fixed/-/gitleaks-secret-scanner-fixed-3.0.6.tgz","fileCount":32,"integrity":"sha512-qW7JSjmuuPGZxn3b6QUu2etB7i5b1xl6Mx6KFodqzw+C4NYifP4YKW0dtKuwc1YYJAI/h3fEM0EftSwFjxy57A==","signatures":[{"sig":"MEUCIQCL4pOYKxRTzBls2Ntsi7zW20nEBL+KO2cyTtlOCqOdWwIgfM8Fhz9EVUPSfIfcrgoRLsJ2OVgy4OGoPK4y35xWxZw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIF18B7ExB5vvncsoVP3HSfHcgUfJtx0a/GCq4q2ZtkthAiEA/MhRS6ghxZ120+uLuMx2jsAD7bDlNEmaEhvrawsH+s4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":239370},"main":"dist/bin/cli.js","type":"module","engines":{"node":">=20"},"gitHead":"7e9c5b969a39bc0d1ead31d7bd7bf4748f98771d","scripts":{"test":"node --import tsx --test test/**/*.test.ts","build":"tsc","check":"npx pr-checkmate all","prepack":"npm run build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","postinstall":"node scripts/postinstall.cjs","preuninstall":"node scripts/preuninstall.cjs"},"_npmUser":{"name":"mavox","email":"stringmymail@gmail.com"},"overrides":{"conventional-changelog-angular":"8.3.1"},"repository":{"url":"git+https://github.com/Mybono/gitleaks-secret-scanner.git","type":"git"},"_npmVersion":"12.2.1","description":"A TypeScript wrapper for the Gitleaks engine providing accurate, safe secret scanning for local pre-commit hooks and CI/CD pipelines.","directories":{},"_nodeVersion":"24.22.1","dependencies":{"tar":"^7.5.22","toml":"^5.0.1","fs-extra":"^11.2.0","unzipper":"^0.12.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^6.0.3","@types/node":"^26.6.3","@types/fs-extra":"^11.0.4","conventional-changelog-cli":"^5.0.0"},"peerDependencies":{"husky":">=9.0.0"},"peerDependenciesMeta":{"husky":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gitleaks-secret-scanner-fixed_3.0.6_1793626518774_0.7424050875033921","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"_id":"gitleaks-secret-scanner-fixed@3.1.0","bin":{"gitleaks-secret-scanner":"dist/bin/cli.js"},"bugs":{"url":"https://github.com/Mybono/gitleaks-secret-scanner/issues"},"dist":{"shasum":"4a05b0fd4e30844c4213bb482454f42701718674","tarball":"https://registry.npmjs.org/gitleaks-secret-scanner-fixed/-/gitleaks-secret-scanner-fixed-3.1.0.tgz","fileCount":32,"integrity":"sha512-QDsoAkzJEdV+iOK4iNneUW/2tHCum8TCIISzGIXG/dGNR26+wy9zoYqpWh+20pH1iK/WUBV3WkcESeO91JC0zg==","signatures":[{"sig":"MEYCIQDGj4Yl6zLJT0LH4w/IF+mgmOFKTJHos+1XXYCaGrmrJQIhAMWdUf0+4IsvxkXN+8OjaonhnpYhn06KMQqvD7UkkRqb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDezudKQDhQuGSivgBAqcyXpLqPy0VM1+crQ/BC1YFQlQIhANLZmCHqxUHfXF6LhfqYjdXgSqcJoFMIogIMl52I3pXB"}],"unpackedSize":239626},"main":"dist/bin/cli.js","name":"gitleaks-secret-scanner-fixed","type":"module","author":{"name":"Artur Polishchuk"},"engines":{"node":">=20"},"gitHead":"c9f1c4c965075a890d81d52f1f1f1bc458a5b687","license":"MIT","scripts":{"test":"node --import tsx --test test/**/*.test.ts","build":"tsc","check":"npx pr-checkmate all","prepack":"npm run build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","postinstall":"node scripts/postinstall.cjs","preuninstall":"node scripts/preuninstall.cjs"},"version":"3.1.0","_npmUser":{"name":"mavox","email":"stringmymail@gmail.com"},"homepage":"https://github.com/Mybono/gitleaks-secret-scanner#readme","keywords":["security","gitleaks","pre-commit","secrets-scanning","git-hooks","toml"],"overrides":{"conventional-changelog-angular":"8.3.1"},"repository":{"url":"git+https://github.com/Mybono/gitleaks-secret-scanner.git","type":"git"},"_npmVersion":"12.2.1","description":"A TypeScript wrapper for the Gitleaks engine providing accurate, safe secret scanning for local pre-commit hooks and CI/CD pipelines.","directories":{},"maintainers":[{"name":"mavox","email":"stringmymail@gmail.com"}],"_nodeVersion":"24.22.1","dependencies":{"tar":"^7.5.22","toml":"^5.0.1","fs-extra":"^11.2.0","unzipper":"^0.12.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^7.0.2","@types/node":"^26.6.3","@types/fs-extra":"^11.0.4","conventional-changelog-cli":"^5.0.0"},"peerDependencies":{"husky":">=9.0.0"},"peerDependenciesMeta":{"husky":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gitleaks-secret-scanner-fixed_3.1.0_1793628255971_0.8822648204965137"}}},"time":{"created":"2026-01-31T15:48:31.286Z","modified":"2026-11-02T14:04:16.239Z","2.1.3":"2026-01-31T15:48:31.528Z","2.2.0":"2026-09-28T12:06:20.443Z","3.0.3":"2026-09-28T14:54:29.545Z","3.0.4":"2026-09-28T17:40:56.339Z","3.0.5":"2026-11-02T13:30:36.185Z","3.0.6":"2026-11-02T13:35:18.901Z","3.1.0":"2026-11-02T14:04:16.055Z"},"bugs":{"url":"https://github.com/Mybono/gitleaks-secret-scanner/issues"},"author":{"name":"Artur Polishchuk"},"license":"MIT","homepage":"https://github.com/Mybono/gitleaks-secret-scanner#readme","keywords":["security","gitleaks","pre-commit","secrets-scanning","git-hooks","toml"],"repository":{"url":"git+https://github.com/Mybono/gitleaks-secret-scanner.git","type":"git"},"description":"A TypeScript wrapper for the Gitleaks engine providing accurate, safe secret scanning for local pre-commit hooks and CI/CD pipelines.","maintainers":[{"name":"mavox","email":"stringmymail@gmail.com"}],"readme":"# Gitleaks Secret Scanner\n\n[![version](https://img.shields.io/badge/version-3.0.0-blue)](https://www.npmjs.com/package/gitleaks-secret-scanner-fixed)\n[![PR Gate](https://github.com/Mybono/gitleaks-secret-scanner/actions/workflows/pr-gate.yml/badge.svg)](https://github.com/Mybono/gitleaks-secret-scanner/actions/workflows/pr-gate.yml)\n[![Node.js >=20](https://img.shields.io/badge/node-%3E%3D20-339933?logo=node.js&logoColor=white)](https://nodejs.org)\n[![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Checked with PR CheckMate](https://img.shields.io/badge/checked_with-PR_CheckMate-2ea44f)](https://www.npmjs.com/package/pr-checkmate)\n\nA zero-configuration Node.js wrapper around [Gitleaks](https://github.com/gitleaks/gitleaks). It downloads and caches the right binary for your OS/arch, then scans staged changes, all uncommitted work, CI pull requests, or full repo history — with rich HTML reports and Husky integration built in.\n\nEvery pull request here is gated by [PR CheckMate](https://www.npmjs.com/package/pr-checkmate) — linting, type checks, dependency/vulnerability scanning, and secret scanning bundled into one check, no per-language toolchain setup required.\n\n## Why use it\n\n- **No manual setup** — the correct Gitleaks binary is downloaded and cached automatically per OS/arch.\n- **Smart CI mode** (`--diff-mode ci`) — scans the *final content* of changed files instead of every intermediate commit, so a secret added and removed in the same PR doesn't fail the build, while a pre-existing secret in a touched file still gets caught.\n- **Safe local scans** — staged-file scanning uses a \"virtual commit\" (via low-level Git plumbing) to get a full report without touching your branch or index.\n- **Rich reports** — console output and HTML reports include file, line, rule, and (in CI mode) author/commit data via `git blame`.\n\n## Install\n\n```bash\nnpm install gitleaks-secret-scanner-fixed --save-dev\n```\n\nOr run without installing:\n\n```bash\nnpx gitleaks-secret-scanner-fixed --diff-mode all --html-report\n```\n\nAdd scripts to `package.json` as needed:\n\n```json\n\"scripts\": {\n  \"scan:staged\": \"gitleaks-secret-scanner\",\n  \"scan:all\": \"gitleaks-secret-scanner --diff-mode all\",\n  \"scan:history\": \"gitleaks-secret-scanner --diff-mode history\"\n}\n```\n\n## CLI options\n\nRun `gitleaks-secret-scanner --options` for the full menu, or `--help` for native Gitleaks help.\n\n| Flag | Description |\n| :--- | :--- |\n| `--diff-mode <mode>` | Scan scope: `staged` (default), `all`, `ci`, `history`. |\n| `--html-report [path]` | Write an HTML report (default `gitleaks-report.html`). |\n| `--depth <number>` | With `--diff-mode history`, limit the scan to the last N commits. |\n| `--gitleaks-version <ver>` | Use a specific Gitleaks version. |\n| `--select-version` | Interactively pick a Gitleaks version to install. |\n| `--manage-versions` / `--clean-all` | View, clean up, or delete cached Gitleaks binaries. |\n| `--engine-version` | Show the installed engine version, binary path, and cache info. |\n| `--setup-husky [--command <cmd>]` | Wire up a Husky pre-commit hook. |\n\nAny other flag (`-v`, `-c`, `--redact`, `-f`, `-r`, ...) passes straight through to Gitleaks.\n\n## Version management\n\nThe latest stable Gitleaks release is used by default and cached under `~/.gitleaks-cache/` (multiple versions can be cached at once). Use `--gitleaks-version <ver>` or `--select-version` to pin a specific one, and `--manage-versions` / `--clean-all` to free up disk space.\n\n## Husky integration\n\nOn install in a git repo, you'll be prompted to wire up a pre-commit hook. To do it later or on a different command:\n\n```bash\nnpx gitleaks-secret-scanner --setup-husky\nnpx gitleaks-secret-scanner --setup-husky --command \"npx gitleaks-secret-scanner --diff-mode all\"\n```\n\nIf a `.husky/pre-commit` hook already exists, the Gitleaks command is appended, not replaced.\n\n## CI/CD\n\n**GitHub Actions** (scans only the files changed in a PR):\n\n```yaml\non:\n  pull_request:\n    branches: [main]\njobs:\n  gitleaks-scan:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n        with: { fetch-depth: 0 }\n      - run: npx gitleaks-secret-scanner-fixed --diff-mode ci --html-report scan-report.html\n        env:\n          BASE_SHA: ${{ github.event.pull_request.base.sha }}\n          HEAD_SHA: ${{ github.event.pull_request.head.sha }}\n      - uses: actions/upload-artifact@v4\n        if: always()\n        with: { name: gitleaks-scan-report, path: scan-report.html }\n```\n\n**GitLab CI:**\n\n```yaml\nsecret-scan-mr:\n  image: node:lts\n  variables:\n    BASE_SHA: ${CI_MERGE_REQUEST_DIFF_BASE_SHA}\n    HEAD_SHA: ${CI_COMMIT_SHA}\n  script:\n    - npx gitleaks-secret-scanner-fixed --diff-mode ci --html-report scan-report.html\n  artifacts:\n    when: always\n    paths: [scan-report.html]\n  rules:\n    - if: '$CI_PIPELINE_SOURCE == \"merge_request_event\"'\n```\n\n## Uninstalling\n\n```bash\nnpm uninstall gitleaks-secret-scanner-fixed\n```\n\nnpm can't run cleanup hooks on uninstall, so cached binaries survive removal. Delete them manually:\n\n```bash\nrm -rf ~/.gitleaks-cache\n```\n\n## Development\n\nRequires Node.js >= 20.\n\n```bash\nnpm run build     # compile TypeScript (src/ -> dist/)\nnpm test          # run the test suite\nnpm run check     # lint, typecheck, security and dependency checks via PR CheckMate\nnpm run changelog  # regenerate CHANGELOG.md from conventional commits\n```\n\nEvery PR is tested on Ubuntu and Windows (`.github/workflows/pr-gate.yml`), including a smoke test that downloads and runs the real platform-specific Gitleaks binary — not just the unit tests, which don't touch the underlying archive format or executable.\n\n## Known limitations\n\nUnknown or misspelled flags (e.g. `--verrbose`) are passed through to Gitleaks rather than rejected, since the parser intentionally allows any native Gitleaks flag.\n\n## License\n\nMIT. This package wraps the [Gitleaks](https://github.com/gitleaks/gitleaks) engine (MIT License, © Zachary Rice), which is not affiliated with or endorsed by this project.\n","readmeFilename":"README.md"}