git-cli-scanner 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +6 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -808,10 +808,11 @@ var Spinner = class {
808
808
  };
809
809
 
810
810
  // src/cli.ts
811
+ var import_child_process2 = require("child_process");
811
812
  var fs3 = __toESM(require("fs"));
812
813
  var path3 = __toESM(require("path"));
813
814
  var program = new import_commander.Command();
814
- program.name("git-cli-scanner").description("Interactive Git hooks vulnerability scanner").version("1.2.0");
815
+ program.name("git-cli-scanner").description("Interactive Git hooks vulnerability scanner").version("1.2.1");
815
816
  program.command("init").description("Install pre-commit hook for automatic scanning").action(() => {
816
817
  info("Setting up pre-commit hook...");
817
818
  try {
@@ -832,6 +833,10 @@ exec < /dev/tty
832
833
  npx git-cli-scanner scan --hook
833
834
  `;
834
835
  fs3.writeFileSync(hookPath, hookContent, { mode: 493 });
836
+ try {
837
+ (0, import_child_process2.execSync)("git config --unset core.hooksPath", { stdio: "ignore" });
838
+ } catch (e) {
839
+ }
835
840
  success("Pre-commit hook installed!");
836
841
  info("Every `git commit` will now automatically scan your staged files.");
837
842
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-cli-scanner",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A powerful interactive CLI tool that scans your codebase for hardcoded secrets, API keys, passwords, and private keys before they reach your Git history.",
5
5
  "main": "dist/cli.js",
6
6
  "scripts": {