Im having following problem. Im using trivy cli to analyze my helm chart. I can do that using 3 snippets:
helm template helm --output-dir output
trivy config --format json output
-- Number of found issues - 55, lenght of output - 1719
trivy config --format json --helm-values helm/values.yaml --helm-values helm/mock-values.yaml helm
-- Number of found issues - 772
-- Json contains 20925 lines
helm template helm --helm-values helm/mock-values.yaml > result.yaml
trivy config --format json result.yaml
-- Number of found issues - 924
-- Json contains 90914 lines
The results are not consistent and I would love to know why, sice as far as i have checked, the helm template ... file/files are the same every time