Yelp / detect-secrets

An enterprise friendly way of detecting and preventing secrets in code.
Apache License 2.0
3.59k stars 449 forks source link

Detect a npmrc auth token being checked in #785

Open kaihendry opened 5 months ago

kaihendry commented 5 months ago

Doesn't seem to pick up on auth tokens in npmrc https://docs.npmjs.com/cli/v9/configuring-npm/npmrc#auth-related-configuration

//registry.example.com/:_auth=foobar
//registry2.example.com/:_authToken=MYTOKEN2

https://gist.github.com/kaihendry/090f21f431560a05e9771c3f854d7c53

Flag the token

Might have accidentally checked in a secret

https://github.com/gitleaks/gitleaks/issues/1326

lantica commented 2 months ago

Having the same issue