diff --git a/test/docker_test.go b/test/docker_test.go index b0e952f3..3f161c19 100644 --- a/test/docker_test.go +++ b/test/docker_test.go @@ -16,8 +16,14 @@ import ( "github.com/liamg/memoryfs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + + builtinrego "github.com/aquasecurity/trivy-checks/pkg/rego" ) +func init() { + builtinrego.RegisterBuiltins() +} + func getFileName(fpath string, info os.FileInfo, typePolicy bool) string { pathParts := strings.Split(fpath, filepath.FromSlash("/")) fileName := info.Name()