Skip to content

pkg-types Property Not Working as Expected in Config File #7367

Closed Answered by DmitriyLewen
shivam-security asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @shivam-security
Thanks for your report!

Looks like we didn't update docs.
Use the following struct:

pkg:
  types: os

example:

➜ cat config.yaml 
pkg:
  types: library

➜ trivy fs . -c config.yaml -d
2024/08/22 11:09:33 INFO Loaded file_path=config.yaml
...
2024-08-22T11:09:33+06:00	DEBUG	[pkg] Package types	types=[library]
...

➜ cat config.yaml             
pkg:
  types: os
➜ trivy fs . -c config.yaml -d
2024/08/22 11:09:43 INFO Loaded file_path=config.yaml
...
2024-08-22T11:09:43+06:00	DEBUG	[pkg] Package types	types=[os]
...

Regards, Dmitriy

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shivam-security
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
triage/support Indicates an issue that is a support question.
2 participants