This section covers configuration specific to the Secrets analyzer. Please make sure you have read the general configuration guide first.
- Type: String
- Presence: mandatory
- Description: Shortcode of the analyzer.
name = "secrets"
- Type: Boolean
- Presence: optional
- Description: Toggle whether this analyzer should be run.
enabled = true
The Secrets analyzer only detects hardcoded secrets in non-test files. To specify a certain pattern of files as test files, add them as test patterns, as shown in the example below.
version = 1 test_patterns = [ "test/**", "test_e2e/**" ] exclude_patterns = [ "**/examples/**" ] [[analyzers]] name = "secrets" enabled = true
Updated 3 months ago