git-cli-scanner 1.3.0 → 1.3.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 (3) hide show
  1. package/dist/cli.js +2 -2
  2. package/package.json +1 -1
  3. package/readme.md +17 -1
package/dist/cli.js CHANGED
@@ -901,7 +901,7 @@ var import_child_process2 = require("child_process");
901
901
  var fs3 = __toESM(require("fs"));
902
902
  var path3 = __toESM(require("path"));
903
903
  var program = new import_commander.Command();
904
- program.name("git-cli-scanner").description("Interactive Git hooks vulnerability scanner").version("1.3.0");
904
+ program.name("git-cli-scanner").description("Interactive Git hooks vulnerability scanner").version("1.3.1");
905
905
  program.command("init").description("Install pre-commit hook for automatic scanning").action(() => {
906
906
  info("Setting up pre-commit hook...");
907
907
  try {
@@ -1061,7 +1061,7 @@ program.command("scan-history").description("Scan Git commit history for exposed
1061
1061
  const { printIssues: printIssues2 } = (init_logger(), __toCommonJS(logger_exports));
1062
1062
  printIssues2(issues, options.showSol);
1063
1063
  } else {
1064
- spinner.succeed("No vulnerabilities found in the scanned history!");
1064
+ spinner.stop("No vulnerabilities found in the scanned history!");
1065
1065
  }
1066
1066
  } catch (err) {
1067
1067
  error(`History scan failed: ${err.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-cli-scanner",
3
- "version": "1.3.0",
3
+ "version": "1.3.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": {
package/readme.md CHANGED
@@ -39,7 +39,7 @@ After running `init`, every time you run `git commit`, the scanner will automati
39
39
  | `scan` | Manually scan staged files |
40
40
  | `scan --show-sol` | Scan staged files and show suggested fixes |
41
41
  | `scan-all [dir]` | Scan an entire directory recursively |
42
- | `scan-all [dir] --show-sol` | Scan a directory and show suggested fixes |
42
+ | `scan-history` | Scan Git commit history for leaked secrets |
43
43
  | `explore` | Launch interactive file explorer TUI |
44
44
 
45
45
  ### Enable automatic scanning
@@ -73,6 +73,22 @@ npx git-cli-scanner scan-all ./src
73
73
  npx git-cli-scanner scan-all tests --show-sol
74
74
  ```
75
75
 
76
+ ### Scan Git history (Time Travel)
77
+
78
+ ```bash
79
+ # Scan the very last commit (default)
80
+ npx git-cli-scanner scan-history
81
+
82
+ # Scan a specific commit by hash
83
+ npx git-cli-scanner scan-history --id <hash>
84
+
85
+ # Scan all commits in the last 30 days
86
+ npx git-cli-scanner scan-history --since="30 days ago"
87
+
88
+ # Scan the entire Git history across all branches!
89
+ npx git-cli-scanner scan-history --all
90
+ ```
91
+
76
92
  ### Interactive file explorer
77
93
 
78
94
  ```bash