Skip to content

Commit

Permalink
chore: Minor changes to variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Sep 18, 2024
1 parent 9eb76a7 commit fe01ca6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 7 additions & 2 deletions apps/cli/src/commands/scan.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
{
Expand Down Expand Up @@ -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/)
Expand Down
8 changes: 1 addition & 7 deletions packages/secret-scan/src/denylist.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SecretConfig } from './index'
import { type SecretConfig } from './index'
import {
adafruit,
adobe,
Expand All @@ -15,7 +15,6 @@ import {
bitbucket,
bittrex,
clojars,
cloudflare,
codecov,
coinbase,
confluent,
Expand Down Expand Up @@ -55,7 +54,6 @@ import {
huggingface,
infracost,
intra42,
// kubernetes,
linear,
lob,
planetscale,
Expand Down Expand Up @@ -131,8 +129,6 @@ const denylist: SecretConfig = {

clojars: clojars(),

//cloudflare: cloudflare(), // This regex is breaking other regexes, TODO: Fix this

codecov: codecov(),

coinbase: coinbase(),
Expand Down Expand Up @@ -183,8 +179,6 @@ const denylist: SecretConfig = {

intra42: intra42(),

//kubernetes: kubernetes(),

linear: linear(),

lob: lob(),
Expand Down

0 comments on commit fe01ca6

Please sign in to comment.