Skip to content

Commit

Permalink
requested changes: pnpm-lock error
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvik9205 committed Nov 12, 2024
1 parent 432d355 commit fa8716c
Show file tree
Hide file tree
Showing 3 changed files with 333 additions and 306 deletions.
2 changes: 1 addition & 1 deletion packages/secret-scan/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ const config: Config = {
collectCoverage: true
}

export default config
export default config
138 changes: 68 additions & 70 deletions packages/secret-scan/src/test/secret.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,277 +80,275 @@ function testSecret(testcases: TestCase[]): void {
}

describe('Detect Secrets from string', () => {
test(testcaseTitleTemplate('Private keys'), () => {
it(testcaseTitleTemplate('Private keys'), () => {
testSecret(private_key.testcases)
})

test(testcaseTitleTemplate('OpenAI keys'), () => {
it(testcaseTitleTemplate('OpenAI keys'), () => {
testSecret(openAI.testcases)
})

test(testcaseTitleTemplate('PyPi keys'), () => {
it(testcaseTitleTemplate('PyPi keys'), () => {
testSecret(pypi.testcases)
})

test(testcaseTitleTemplate('Sendgrid keys'), () => {
it(testcaseTitleTemplate('Sendgrid keys'), () => {
testSecret(sendgrid.testcases)
})

test(testcaseTitleTemplate('Square OAuth keys'), () => {
it(testcaseTitleTemplate('Square OAuth keys'), () => {
testSecret(square_OAuth.testcases)
})

test(testcaseTitleTemplate('Stripe keys'), () => {
it(testcaseTitleTemplate('Stripe keys'), () => {
testSecret(stripe.testcases)
})

test(testcaseTitleTemplate('Telegram token'), () => {
it(testcaseTitleTemplate('Telegram token'), () => {
testSecret(telegram_token.testcases)
})

test(testcaseTitleTemplate('Twilio keys'), () => {
it(testcaseTitleTemplate('Twilio keys'), () => {
testSecret(twilio.testcases)
})

test(testcaseTitleTemplate('NPM keys'), () => {
it(testcaseTitleTemplate('NPM keys'), () => {
testSecret(npm.testcases)
})

test(testcaseTitleTemplate('Mailchimp keys'), () => {
it(testcaseTitleTemplate('Mailchimp keys'), () => {
testSecret(mailchimp.testcases)
})

// Uncomment and add logic if this functionality is restored
// test(testcaseTitleTemplate("JWT Key"), () => {
// it(testcaseTitleTemplate("JWT Key"), () => {
// testSecret(jwt.testcases);
// });

test(testcaseTitleTemplate('Public IP'), () => {
it(testcaseTitleTemplate('Public IP'), () => {
testSecret(ip_public.testcases)
})

test(testcaseTitleTemplate('Github Token'), () => {
it(testcaseTitleTemplate('Github Token'), () => {
testSecret(github.testcases)
})

test(testcaseTitleTemplate('Discord Token'), () => {
it(testcaseTitleTemplate('Discord Token'), () => {
testSecret(discord.testcases)
})

test(testcaseTitleTemplate('Artifactory Token'), () => {
it(testcaseTitleTemplate('Artifactory Token'), () => {
testSecret(artifactory.testcases)
})

test(testcaseTitleTemplate('AWS Token'), () => {
it(testcaseTitleTemplate('AWS Token'), () => {
testSecret(aws.testcases)
})

test(testcaseTitleTemplate('Algolia Token'), () => {
it(testcaseTitleTemplate('Algolia Token'), () => {
testSecret(algolia.testcases)
})

test(testcaseTitleTemplate('Alibaba Key'), () => {
it(testcaseTitleTemplate('Alibaba Key'), () => {
testSecret(alibaba.testcases)
})

test(testcaseTitleTemplate('Adafruit Key'), () => {
it(testcaseTitleTemplate('Adafruit Key'), () => {
testSecret(adafruit.testcases)
})

test(testcaseTitleTemplate('Adobe Key'), () => {
it(testcaseTitleTemplate('Adobe Key'), () => {
testSecret(adobe.testcases)
})

test(testcaseTitleTemplate('Age Key'), () => {
it(testcaseTitleTemplate('Age Key'), () => {
testSecret(age.testcases)
})

test(testcaseTitleTemplate('Airtable Key'), () => {
it(testcaseTitleTemplate('Airtable Key'), () => {
testSecret(airtable.testcases)
})

test(testcaseTitleTemplate('Asana Key'), () => {
it(testcaseTitleTemplate('Asana Key'), () => {
testSecret(asana.testcases)
})

test(testcaseTitleTemplate('Atlassian Key'), () => {
it(testcaseTitleTemplate('Atlassian Key'), () => {
testSecret(atlassian.testcases)
})

test(testcaseTitleTemplate('Authress Key'), () => {
it(testcaseTitleTemplate('Authress Key'), () => {
testSecret(authress.testcases)
})

test(testcaseTitleTemplate('Beamer Key'), () => {
it(testcaseTitleTemplate('Beamer Key'), () => {
testSecret(beamer.testcases)
})

test(testcaseTitleTemplate('Bitbucket Key'), () => {
it(testcaseTitleTemplate('Bitbucket Key'), () => {
testSecret(bitbucket.testcases)
})

test(testcaseTitleTemplate('Bittrex Key'), () => {
it(testcaseTitleTemplate('Bittrex Key'), () => {
testSecret(bittrex.testcases)
})

test(testcaseTitleTemplate('Clojars Key'), () => {
it(testcaseTitleTemplate('Clojars Key'), () => {
testSecret(clojars.testcases)
})

test(testcaseTitleTemplate('Codecov Key'), () => {
it(testcaseTitleTemplate('Codecov Key'), () => {
testSecret(codecov.testcases)
})

test(testcaseTitleTemplate('Coinbase Key'), () => {
it(testcaseTitleTemplate('Coinbase Key'), () => {
testSecret(coinbase.testcases)
})

test(testcaseTitleTemplate('Confluent Key'), () => {
it(testcaseTitleTemplate('Confluent Key'), () => {
testSecret(confluent.testcases)
})

test(testcaseTitleTemplate('Contentful Key'), () => {
it(testcaseTitleTemplate('Contentful Key'), () => {
testSecret(contentful.testcases)
})

test(testcaseTitleTemplate('Databricks Key'), () => {
it(testcaseTitleTemplate('Databricks Key'), () => {
testSecret(databricks.testcases)
})

test(testcaseTitleTemplate('Datadog Key'), () => {
it(testcaseTitleTemplate('Datadog Key'), () => {
testSecret(datadog.testcases)
})

test(testcaseTitleTemplate('Defined Networking Key'), () => {
it(testcaseTitleTemplate('Defined Networking Key'), () => {
testSecret(definednetworking.testcases)
})

test(testcaseTitleTemplate('Digital Ocean Key'), () => {
it(testcaseTitleTemplate('Digital Ocean Key'), () => {
testSecret(digitalocean.testcases)
})

test(testcaseTitleTemplate('Doppler Key'), () => {
it(testcaseTitleTemplate('Doppler Key'), () => {
testSecret(doppler.testcases)
})

test(testcaseTitleTemplate('Dropbox Key'), () => {
it(testcaseTitleTemplate('Dropbox Key'), () => {
testSecret(dropbox.testcases)
})

test(testcaseTitleTemplate('Duffel Key'), () => {
it(testcaseTitleTemplate('Duffel Key'), () => {
testSecret(duffel.testcases)
})

test(testcaseTitleTemplate('Dynatrace Key'), () => {
it(testcaseTitleTemplate('Dynatrace Key'), () => {
testSecret(dynatrace.testcases)
})

test(testcaseTitleTemplate('Easypost Key'), () => {
it(testcaseTitleTemplate('Easypost Key'), () => {
testSecret(easypost.testcases)
})

test(testcaseTitleTemplate('Facebook Key'), () => {
it(testcaseTitleTemplate('Facebook Key'), () => {
testSecret(facebook.testcases)
})

test(testcaseTitleTemplate('Flutterwave Key'), () => {
it(testcaseTitleTemplate('Flutterwave Key'), () => {
testSecret(flutterwave.testcases)
})

test(testcaseTitleTemplate('Frameio Key'), () => {
it(testcaseTitleTemplate('Frameio Key'), () => {
testSecret(frameio.testcases)
})

test(testcaseTitleTemplate('Gitlab Key'), () => {
it(testcaseTitleTemplate('Gitlab Key'), () => {
testSecret(gitlab.testcases)
})

test(testcaseTitleTemplate('Grafana Key'), () => {
it(testcaseTitleTemplate('Grafana Key'), () => {
testSecret(grafana.testcases)
})

test(testcaseTitleTemplate('Harness Key'), () => {
it(testcaseTitleTemplate('Harness Key'), () => {
testSecret(harness.testcases)
})

test(testcaseTitleTemplate('Hashicorp Key'), () => {
it(testcaseTitleTemplate('Hashicorp Key'), () => {
testSecret(hashicorp.testcases)
})

test(testcaseTitleTemplate('Heroku Key'), () => {
it(testcaseTitleTemplate('Heroku Key'), () => {
testSecret(heroku.testcases)
})

test(testcaseTitleTemplate('Hubspot Key'), () => {
it(testcaseTitleTemplate('Hubspot Key'), () => {
testSecret(hubspot.testcases)
})

test(testcaseTitleTemplate('Huggingface Key'), () => {
it(testcaseTitleTemplate('Huggingface Key'), () => {
testSecret(huggingface.testcases)
})

test(testcaseTitleTemplate('Infracost Key'), () => {
it(testcaseTitleTemplate('Infracost Key'), () => {
testSecret(infracost.testcases)
})

test(testcaseTitleTemplate('Intra42 Key'), () => {
it(testcaseTitleTemplate('Intra42 Key'), () => {
testSecret(intra42.testcases)
})

// Uncomment if needed in the future
// test(testcaseTitleTemplate('Kubernetes Key'), () => {
// it(testcaseTitleTemplate('Kubernetes Key'), () => {
// testSecret(kubernetes.testcases);
// });

test(testcaseTitleTemplate('Linear Key'), () => {
it(testcaseTitleTemplate('Linear Key'), () => {
testSecret(linear.testcases)
})

test(testcaseTitleTemplate('Lob Key'), () => {
it(testcaseTitleTemplate('Lob Key'), () => {
testSecret(lob.testcases)
})

test(testcaseTitleTemplate('Planetscale Key'), () => {
it(testcaseTitleTemplate('Planetscale Key'), () => {
testSecret(planetscale.testcases)
})

test(testcaseTitleTemplate('Postman Key'), () => {
it(testcaseTitleTemplate('Postman Key'), () => {
testSecret(postman.testcases)
})

test(testcaseTitleTemplate('Prefect Key'), () => {
it(testcaseTitleTemplate('Prefect Key'), () => {
testSecret(prefect.testcases)
})

test(testcaseTitleTemplate('Pulumi Key'), () => {
it(testcaseTitleTemplate('Pulumi Key'), () => {
testSecret(pulumi.testcases)
})

test(testcaseTitleTemplate('Readme Key'), () => {
it(testcaseTitleTemplate('Readme Key'), () => {
testSecret(readme.testcases)
})

test(testcaseTitleTemplate('Rubygems Key'), () => {
it(testcaseTitleTemplate('Rubygems Key'), () => {
testSecret(rubygems.testcases)
})

test(testcaseTitleTemplate('Scalingo Key'), () => {
it(testcaseTitleTemplate('Scalingo Key'), () => {
testSecret(scalingo.testcases)
})

test(testcaseTitleTemplate('Sendinblue Key'), () => {
it(testcaseTitleTemplate('Sendinblue Key'), () => {
testSecret(sendinblue.testcases)
})

test(testcaseTitleTemplate('Shippo Key'), () => {
it(testcaseTitleTemplate('Shippo Key'), () => {
testSecret(shippo.testcases)
})

test(testcaseTitleTemplate('Shopify Key'), () => {
it(testcaseTitleTemplate('Shopify Key'), () => {
testSecret(shopify.testcases)
})

test(testcaseTitleTemplate('Sidekiq Key'), () => {
it(testcaseTitleTemplate('Sidekiq Key'), () => {
testSecret(sidekiq.testcases)
})
})
Loading

0 comments on commit fa8716c

Please sign in to comment.