grepleaks 1.3.7 → 1.4.0
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/bin/grepleaks.js +9 -9
- package/package.json +1 -1
package/bin/grepleaks.js
CHANGED
|
@@ -8,7 +8,7 @@ const http = require('http');
|
|
|
8
8
|
const archiver = require('archiver');
|
|
9
9
|
const readline = require('readline');
|
|
10
10
|
|
|
11
|
-
const API_URL = 'http://
|
|
11
|
+
const API_URL = 'http://grepleaks.com';
|
|
12
12
|
const CONFIG_FILE = '.grepleaksrc';
|
|
13
13
|
|
|
14
14
|
// Colors for terminal output
|
|
@@ -142,7 +142,7 @@ async function sendScan(zipPath, apiKey) {
|
|
|
142
142
|
const jobId = await submitScanJob(zipPath, apiKey);
|
|
143
143
|
|
|
144
144
|
// Step 2: Poll for completion
|
|
145
|
-
logInfo('Processing with
|
|
145
|
+
logInfo('Processing with analysis...');
|
|
146
146
|
const result = await pollForCompletion(jobId, apiKey);
|
|
147
147
|
|
|
148
148
|
return result;
|
|
@@ -366,7 +366,7 @@ When do you want to run security scans?
|
|
|
366
366
|
logSuccess('Pre-commit and pre-push hooks installed');
|
|
367
367
|
break;
|
|
368
368
|
case '4':
|
|
369
|
-
logInfo('No hooks installed. Run "
|
|
369
|
+
logInfo('No hooks installed. Run "grepleaks scan" manually.');
|
|
370
370
|
break;
|
|
371
371
|
default:
|
|
372
372
|
logError('Invalid choice');
|
|
@@ -395,7 +395,7 @@ When do you want to run security scans?
|
|
|
395
395
|
${colors.green}${colors.bold}Setup complete!${colors.reset}
|
|
396
396
|
|
|
397
397
|
Run a manual scan anytime with:
|
|
398
|
-
${colors.cyan}
|
|
398
|
+
${colors.cyan}grepleaks scan${colors.reset}
|
|
399
399
|
`);
|
|
400
400
|
}
|
|
401
401
|
|
|
@@ -405,7 +405,7 @@ async function scan(apiKey) {
|
|
|
405
405
|
apiKey = apiKey || config.apiKey || process.env.GREPLEAKS_API_KEY;
|
|
406
406
|
|
|
407
407
|
if (!apiKey) {
|
|
408
|
-
logError('No API key provided. Run "
|
|
408
|
+
logError('No API key provided. Run "grepleaks init" or use --api-key');
|
|
409
409
|
process.exit(1);
|
|
410
410
|
}
|
|
411
411
|
|
|
@@ -479,7 +479,7 @@ function help() {
|
|
|
479
479
|
console.log(`
|
|
480
480
|
${colors.cyan}${colors.bold}Grepleaks CLI${colors.reset}
|
|
481
481
|
|
|
482
|
-
Usage:
|
|
482
|
+
Usage: grepleaks <command> [options]
|
|
483
483
|
|
|
484
484
|
Commands:
|
|
485
485
|
${colors.cyan}init${colors.reset} Setup grepleaks in your project
|
|
@@ -490,9 +490,9 @@ Options:
|
|
|
490
490
|
${colors.cyan}--api-key${colors.reset} Your Grepleaks API key
|
|
491
491
|
|
|
492
492
|
Examples:
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
493
|
+
grepleaks init
|
|
494
|
+
grepleaks scan
|
|
495
|
+
grepleaks scan --api-key grpl_xxx
|
|
496
496
|
|
|
497
497
|
Get your API key at: ${colors.cyan}${API_URL}${colors.reset}
|
|
498
498
|
`);
|