Skip to content

Conversation

@millianlmx
Copy link

@millianlmx millianlmx commented Aug 7, 2024

Adding support for filtering secrets using deep learning models from huggingface specialized in string classification for detecting secrets.

  • Please check if the PR fulfills these requirements
  • Tests for the changes have been added
  • Docs have been added / updated
  • All CI checks are green
  • What kind of change does this PR introduce?

This PR add the abality for detect-secrets to filter scans using deep learning model from huggingface.
By running the following command :

detect-secrets scan --huggingface-model huggingface/path --threshold 0.8 --huggingface-token TOKEN
  • Other information:
    When using this feature the performance of detect-secrets drops a bit because of usage of big models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant