Replies: 1 comment
-
Hi @asankov ! Track #6787 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am playing around with the secret detection features and I see that some matchers like
grafana-api-token
,hashicorp-tf-api-token
and others expect that the value of the token is surrounded by quotes['\"]
.This means that If I have a file like this:
or
the value would not be detected by the scanner.
What is the reason to expect them to be like that?
Desired Behavior
The token is matched regardless of whether the value is surrounded by quotes or not.
Actual Behavior
Token is not matched unless value is in quotes.
Reproduction Steps
1. Create a YAML or .env file similar to the one I provided in the description of the issue. 2. Run it via the secret detector 3. Observe that no findings are reported
Target
Filesystem
Scanner
Secret
Output Format
None
Mode
None
Debug Output
Operating System
macOS
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions