From 8e6cf996418b9c8cabdcc8cec8035350db6faba2 Mon Sep 17 00:00:00 2001 From: Nikita Pivkin Date: Thu, 18 Apr 2024 15:40:07 +0700 Subject: [PATCH] fix test --- test/docker_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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()