Skip to content

Instantly share code, notes, and snippets.

@iloveicedgreentea
Created June 14, 2021 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iloveicedgreentea/ec226059fe8a4a7588138fadc5490383 to your computer and use it in GitHub Desktop.
Save iloveicedgreentea/ec226059fe8a4a7588138fadc5490383 to your computer and use it in GitHub Desktop.
Read json in rego
package main
# Deny if somevalue is false
deny[msg] {
val := input.somelist[i]
not val
msg := sprintf("%d: %s", [i, val])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment