Discrepancy between Playground and prod #436
-
When I format my rego code here in the Rego Playground, it puts an
But when I try to run the code with Trivy on my set up, I get When I remove it, there's another error that's not relevant here, but I too thought |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Morgan! The |
Beta Was this translation helpful? Give feedback.
Hi Morgan!
The
if
keywords is optional, but recommended for readability. It does however require the use ofimport future.keywords.if
in the policy, as the keyword was added fairly recently. I can't speak for, or support, Trivy as it is an external project, but do you include such an import in your policy there?