Yelp / detect-secrets

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

False positive detection of Git revision hash as high entropy string in `pyproject.toml` #746

Closed estyxx closed 10 months ago

estyxx commented 10 months ago
lorenzodb1 commented 10 months ago

Hi @estyxx, the line you posted contains a high entropy string, so detect-secrets isn't wrong in that. Have you thought of excluding pyproject.toml as a whole?

estyxx commented 10 months ago

Ohh okay, I will just add the comment then!
I thought it was a little bit "smarter" detecting that that was a dependency and it's ok within the pyproject but nevermind! I don't think I will exclude the file entirely because in there we can put tool configurations, so it's unusual to put secrets in there, but you never know!

lorenzodb1 commented 9 months ago

so it's unusual to put secrets in there, but you never know!

that's exactly the reason why we don't exclude files by default :)