trivy usage #1537
-
QuestionI could not figure out to use trivy with tfaction. Is there any way to specify config path for trivy.yaml? it's expecting it in running terraform folder. Other one is when i changed timeout to 10m, it's giving me the outputs but not seeing them as comment. i have enabled reviewdog and added yaml to aqua imports. Background of the questionNo response Example CodeGitHub Actions tfaction-root.yaml tfaction.yaml NoteNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 18 replies
-
I'd really appreciate it if you separate discussions per question from the next time.
Lines 29 to 34 in 15be319 Trivy is run on each working directory, so please add the file https://aquasecurity.github.io/trivy/v0.49/docs/configuration/
According to the document of Trivy, I think you can specify the path by the environment variable https://aquasecurity.github.io/trivy/v0.49/docs/configuration/#environment-variables |
Beta Was this translation helpful? Give feedback.
-
It looks strange. tfaction uses this action. This action should post a comment by github-comment and create a review by reviewdog if Terraform code violates any trivy policies. Did the workflow exit by timeout? Was a comment posted by github-comment? |
Beta Was this translation helpful? Give feedback.
I fixed trivy-config-action.