mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 23:00:42 -08:00
feat(repo): support local repositories (#4890)
* feat(repo): support local repositories * fix tests * test: fix client/server tests * docs: update * test: add fs tests * test: do not update golden files if overridden * docs: remove a comment about fs deprecation
This commit is contained in:
15
integration/testdata/fixtures/repo/rule-exception/policy/exception.rego
vendored
Normal file
15
integration/testdata/fixtures/repo/rule-exception/policy/exception.rego
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package builtin.dockerfile.DS002
|
||||
|
||||
exception[rules] {
|
||||
instruction := input.stages[_][_]
|
||||
instruction.Cmd == "label"
|
||||
|
||||
key := instruction.Value[i]
|
||||
i % 2 == 0
|
||||
key == "user.root"
|
||||
|
||||
value := instruction.Value[plus(i, 1)]
|
||||
value == "\"allow\""
|
||||
|
||||
rules = [""]
|
||||
}
|
||||
Reference in New Issue
Block a user