Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { Command } from 'commander';
import path from 'path';
import scanner from './scanner.js';
import chalk from 'chalk';

const program = new Command();
program
Expand All @@ -14,6 +15,15 @@ program
.option('--ci', 'CI mode: exit non-zero on findings and produce machine-friendly output')
.parse(process.argv);

const logo = `

█▀▀ █▀█ █▀▄ █▀▀ █▀▀ █░█ ▄▀█ █▀█ █▀▄ █ ▄▀█ █▄░█
█▄▄ █▄█ █▄▀ ██▄ █▄█ █▄█ █▀█ █▀▄ █▄▀ █ █▀█ █░▀█

`;

console.log(chalk.magenta(logo));

(async () => {
const opts = program.opts();
const configPath = opts.config ? path.resolve(process.cwd(), opts.config) : null;
Expand Down
2 changes: 1 addition & 1 deletion src/scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async function run({ configPath = null, staged = false, verbose = false } = {})

// Print nice output
if (findings.length === 0) {
console.log(chalk.green('No secrets found.'));
console.log(chalk.green('Scan successful but no secrets found in.', process.cwd()));
} else {
console.log(chalk.red(`Found ${findings.length} file(s) with potential secrets:`));
for (const f of findings) {
Expand Down