trivy
trivy copied to clipboard
fix(flag): resolve env's from config file for `string` and `[]string` flags
Description
See #8436
Example:
cache:
dir: "$HOME/.cache/trivy"
Before:
2025-02-24T11:48:13+06:00 DEBUG Cache dir dir="$HOME/.cache/trivy"
After:
2025-02-24T11:47:23+06:00 DEBUG Cache dir dir="/Users/dmitriy/.cache/trivy"
Related issues
- Close #XXX
Related PRs
- [ ] #XXX
- [ ] #YYY
Remove this section if you don't have related PRs.
Checklist
- [ ] I've read the guidelines for contributing to this repository.
- [ ] I've followed the conventions in the PR title.
- [ ] I've added tests that prove my fix is effective or that my feature works.
- [ ] I've updated the documentation with the relevant information (if needed).
- [ ] I've added usage information (if the PR introduces new options)
- [ ] I've included a "before" and "after" example to the description (if the PR is a user interface change).
This PR is stale because it has been labeled with inactivity.
This PR is stale because it has been labeled with inactivity.