Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.58 KB

gitleaks.md

File metadata and controls

58 lines (42 loc) · 1.58 KB
description title layout
Explore Gitleaks, an open-source tool for identifying secrets in codebases. Learn about its file type support and integration with Trunk.
Trunk | How to run Gitleaks
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

Gitleaks

Gitleaks is a linter for All.

You can enable the Gitleaks linter with:

trunk check enable gitleaks

gitleaks example output

Auto Enabling

Gitleaks will be auto-enabled if any of its config files are present: .gitleaks.config, .gitleaks.toml, .gitleaksignore.

Settings

Gitleaks supports the following config files:

  • .gitleaks.config
  • .gitleaks.toml
  • .gitleaksignore

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info.

Usage Notes

Gitleaks v7 only works with Go 1.16, not Go 1.18 while Gitleaks v8 works with 1.18. We recommend using v8, but if you specifically need to use v7 you can override the go runtime version like so:

yaruntimes:
  enabled:
    - [email protected]

Again, this is not recommended. Just use Gitleaks v8 or later with go 1.18 or later.

Links