git-cli-scanner 1.1.4 → 1.1.5
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.
- package/dist/cli.js +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -673,7 +673,7 @@ init_logger();
|
|
|
673
673
|
|
|
674
674
|
// src/utils/prompts.ts
|
|
675
675
|
var import_prompts = require("@inquirer/prompts");
|
|
676
|
-
async function askToContinue(isHook
|
|
676
|
+
async function askToContinue(isHook) {
|
|
677
677
|
return await (0, import_prompts.confirm)({
|
|
678
678
|
message: isHook ? "Vulnerabilities were found! Do you still want to continue with the commit?" : "Vulnerabilities were found! Do you want to ignore them?",
|
|
679
679
|
default: false
|
|
@@ -727,7 +727,7 @@ var Spinner = class {
|
|
|
727
727
|
var fs3 = __toESM(require("fs"));
|
|
728
728
|
var path3 = __toESM(require("path"));
|
|
729
729
|
var program = new import_commander.Command();
|
|
730
|
-
program.name("git-cli-scanner").description("Interactive Git hooks vulnerability scanner").version("1.1.
|
|
730
|
+
program.name("git-cli-scanner").description("Interactive Git hooks vulnerability scanner").version("1.1.5");
|
|
731
731
|
program.command("init").description("Install pre-commit hook for automatic scanning").action(() => {
|
|
732
732
|
info("Setting up pre-commit hook...");
|
|
733
733
|
try {
|
|
@@ -798,7 +798,7 @@ program.command("scan").description("Scan staged files for vulnerabilities").opt
|
|
|
798
798
|
info(options.hook ? "No high or medium vulnerabilities found. Safe to commit!" : "No high or medium vulnerabilities found.");
|
|
799
799
|
process.exit(0);
|
|
800
800
|
}
|
|
801
|
-
const shouldContinue = await askToContinue(options.hook);
|
|
801
|
+
const shouldContinue = await askToContinue(!!options.hook);
|
|
802
802
|
if (shouldContinue) {
|
|
803
803
|
info(options.hook ? "Proceeding with commit despite vulnerabilities." : "Proceeding despite vulnerabilities.");
|
|
804
804
|
process.exit(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-cli-scanner",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
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": {
|