mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
refactor(misconf): use slog (#7295)
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
This commit is contained in:
@@ -998,10 +998,8 @@ deny {
|
||||
},
|
||||
}
|
||||
|
||||
var buf bytes.Buffer
|
||||
scanner := NewScanner(
|
||||
types.SourceYAML,
|
||||
options.ScannerWithDebug(&buf),
|
||||
)
|
||||
require.NoError(
|
||||
t,
|
||||
@@ -1009,8 +1007,6 @@ deny {
|
||||
)
|
||||
_, err := scanner.ScanInput(context.TODO(), Input{})
|
||||
require.NoError(t, err)
|
||||
assert.Contains(t, buf.String(),
|
||||
`Error occurred while applying rule "deny" from check "checks/bad.rego"`)
|
||||
}
|
||||
|
||||
func Test_RegoScanning_WithDeprecatedCheck(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user