-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): Bump trivy-checks #7417
Conversation
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
libs, err := rego.LoadEmbeddedLibraries() | ||
require.NoError(t, err) | ||
for name, library := range libs { | ||
regoMap["/rules/"+name] = library.String() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OPA has a bug with converting a module to a string and back. https://github.com/open-policy-agent/opa
Especially there is no point in loading the libraries yourself, as Rego scanner can do it.
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
40d3595
to
98d7175
Compare
@@ -33,7 +33,7 @@ func Test_Scanning_Plan(t *testing.T) { | |||
failedResults = append(failedResults, r) | |||
} | |||
} | |||
assert.Len(t, results, 15) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Bump trivy-checks
Related PRs: