github.com/devseccon/trivy@v0.47.1-0.20231123133102-bd902a0bd996/integration/testdata/fixtures/repo/rule-exception/policy/exception.rego (about) 1 package builtin.dockerfile.DS002 2 3 exception[rules] { 4 instruction := input.stages[_][_] 5 instruction.Cmd == "label" 6 7 key := instruction.Value[i] 8 i % 2 == 0 9 key == "user.root" 10 11 value := instruction.Value[plus(i, 1)] 12 value == "\"allow\"" 13 14 rules = [""] 15 }