For the complete documentation index, see llms.txt. This page is also available as Markdown.

Security

Secret Scanning

In Harness Open Source, you can use the integrated Gitleaks tool to block secrets like passwords, API keys, and tokens from being pushed to your Git repositories. Enabling secret scanning for individual repositories ensures that any attempt to push a commit containing a recognized secret pattern is denied. This is essential for maintaining the security of your codebase.

To enable Secret Scanning:

  1. Go to the repository where you want to enable secret scanning and select Settings.

  2. Select the Security tab.

  3. Enable Secret Scanning.

  4. Select Save.

  5. Repeat to enable Secret Scanning on additional repos.

Bypass or ignore detected secrets

Bypassing/ignoring detected secrets is not recommended unless you are certain the detected secret doesn't represent a potential vulnerability, such as test data containing fake secrets.

If you want to bypass Gitleaks and knowingly commit a recognized secret, you have two options:

  • Add gitleaks:allow as a comment in your code.

  • Create a .gitleaksignore file.

For more information, refer to the Gitleaks README.

Last updated

Was this helpful?