trivy icon indicating copy to clipboard operation
trivy copied to clipboard

fix(flag): resolve env's from config file for `string` and `[]string` flags

Open DmitriyLewen opened this issue 10 months ago • 1 comments

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).

DmitriyLewen avatar Feb 24 '25 05:02 DmitriyLewen

This PR is stale because it has been labeled with inactivity.

github-actions[bot] avatar Apr 26 '25 00:04 github-actions[bot]

This PR is stale because it has been labeled with inactivity.

github-actions[bot] avatar Jul 05 '25 00:07 github-actions[bot]