Replies: 1 comment 2 replies
-
Hi @vmorkunas ! Trivy transforms the raw data and passes a special structure to Rego. Here you can see its json schema. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am trying to run a custom rego check for terraform plan which would just print tags and tags_all fields from json. When i run checks from opa cli it works as expected, but when I try to run it via trivy, then it seems it just gets ignored.
common policy with just few functions to read all resources from terrafom plan (lib.rego):
aws_tags.rego:
OPA CLI output:
Desired Behavior
Should print all resources tags
Actual Behavior
Nothing happens
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
JSON
Mode
Standalone
Debug Output
Operating System
macos sonoma
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions