Secrets CLI (Beta)
The Sonar Secrets CLI integrates directly into your Git workflow. It analyzes your code for potential secrets to help you prevent pushing sensitive information to your repositories.
Installing the CLI
Installing the pre-commit framework
pip install pre-commitbrew install pre-commitpre-commit -VCreating the configuration file
repos:
- repo: https://github.com/SonarSource/sonar-secrets-pre-commit
rev: v2.38.0.10279
hooks:
- id: sonar-secrets
stages: [pre-commit]Installing the hook in your Git repository
Setting up authentication
Testing the hook
Skipping the pre-commit check
Keeping the pre-commit up to date
Using the Secrets CLI as a pre-push hook
Feedback
Last updated
Was this helpful?

