From fe01ca6f77d1f58e63b4d71e48e38b5d18d6d283 Mon Sep 17 00:00:00 2001 From: rajdip-b Date: Wed, 18 Sep 2024 19:58:49 +0530 Subject: [PATCH] chore: Minor changes to variables --- apps/cli/src/commands/scan.command.ts | 9 +++++++-- packages/secret-scan/src/denylist.ts | 8 +------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/apps/cli/src/commands/scan.command.ts b/apps/cli/src/commands/scan.command.ts index 186cd8dd..53361871 100644 --- a/apps/cli/src/commands/scan.command.ts +++ b/apps/cli/src/commands/scan.command.ts @@ -12,6 +12,11 @@ import secretDetector from '@keyshade/secret-scan' const colors = require('colors/safe') export default class ScanCommand extends BaseCommand { + public constructor() { + super() + console.log(colors.cyan.bold('🔍 Secret Scan Started')) + } + getOptions(): CommandOption[] { return [ { @@ -59,10 +64,10 @@ export default class ScanCommand extends BaseCommand { } } - private scanFiles(allfiles: string[]) { + private scanFiles(allFiles: string[]) { const foundSecrets = [] let skipNextLine = false - for (const file of allfiles) { + for (const file of allFiles) { const stats = statSync(file) if (stats.isFile()) { const content = readFileSync(file, 'utf8').split(/\r?\n/) diff --git a/packages/secret-scan/src/denylist.ts b/packages/secret-scan/src/denylist.ts index 758536f6..ebc5a211 100644 --- a/packages/secret-scan/src/denylist.ts +++ b/packages/secret-scan/src/denylist.ts @@ -1,4 +1,4 @@ -import { SecretConfig } from './index' +import { type SecretConfig } from './index' import { adafruit, adobe, @@ -15,7 +15,6 @@ import { bitbucket, bittrex, clojars, - cloudflare, codecov, coinbase, confluent, @@ -55,7 +54,6 @@ import { huggingface, infracost, intra42, - // kubernetes, linear, lob, planetscale, @@ -131,8 +129,6 @@ const denylist: SecretConfig = { clojars: clojars(), - //cloudflare: cloudflare(), // This regex is breaking other regexes, TODO: Fix this - codecov: codecov(), coinbase: coinbase(), @@ -183,8 +179,6 @@ const denylist: SecretConfig = { intra42: intra42(), - //kubernetes: kubernetes(), - linear: linear(), lob: lob(),