Trivy seems to not expand env variables when using config file #8426
RyuunosukeDS3
started this conversation in
Bugs
Replies: 1 comment 2 replies
-
AFAIK we don't extrapolate variables inside of a trivy config file. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I have trivy running in a CI environment on GitLab in order to automatically get vulnerabilities for our applications. We are using a config file (trivy.yaml) that is downloaded at runtime in order to set trivy options. Other options work, but the cache directory option seem to not be exapding the variables correctly.
trivy.yaml
This can also be observed locally
Desired Behavior
I wanted trivy to expand these variables in order to use it:
Actual Behavior
It treats the variables as a common string failing to sabe the cache in the apropriate place
Reproduction Steps
Target
Filesystem
Scanner
Vulnerability
Output Format
Table
Mode
Standalone
Debug Output
Operating System
Linux (Alpine, Ubuntu, Debian, etc)
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions