Pre-commit hooks
Integrate the Cortex Cloud Application Security secrets scanner as a pre-commit hook by installing the Cortex CLI. The scanner executes the hook locally before a commit. This setup ensures that secrets checks are enforced before any changes are committed.
When setting up pre-commit hooks, you can choose between local hooks and global hooks.
Local: Installs the hook in the
.git/hooksdirectory of the current repository, ensuring that Cortex Cloud secrets scans automatically run on your code before every commitGlobal: Installs the hook for all Git repositories on your machine, so Cortex Cloud secrets scans will automatically run on your code before every commit, regardless of the project
FFor information on setting up and using pre-commit hooks, refer to Cortex CLI pre-commit hooks.
Last updated
Was this helpful?
