diff --git a/checks/docker/run_apt_get_dist_upgrade.rego b/checks/docker/run_apt_get_dist_upgrade.rego index d92163f9..9461b243 100644 --- a/checks/docker/run_apt_get_dist_upgrade.rego +++ b/checks/docker/run_apt_get_dist_upgrade.rego @@ -6,6 +6,7 @@ # - input: schema["dockerfile"] # custom: # id: DS024 +# deprecated: true # avd_id: AVD-DS-0024 # severity: HIGH # short_code: no-dist-upgrade diff --git a/test/docker_test.go b/test/docker_test.go index cc19bdb6..8ba6e263 100644 --- a/test/docker_test.go +++ b/test/docker_test.go @@ -28,12 +28,14 @@ func Test_Dockerfile(t *testing.T) { opts: []options.ScannerOption{ rego.WithPolicyFilesystem(os.DirFS("../checks/docker")), rego.WithPolicyDirs("."), + rego.WithIncludeDeprecatedChecks(false), }, }, { name: "embedded checks", opts: []options.ScannerOption{ rego.WithEmbeddedPolicies(true), + rego.WithIncludeDeprecatedChecks(false), }, }, } diff --git a/test/kubernetes_test.go b/test/kubernetes_test.go index 7a126661..0d6f197b 100644 --- a/test/kubernetes_test.go +++ b/test/kubernetes_test.go @@ -46,6 +46,7 @@ func Test_Kubenetes(t *testing.T) { opts := []options.ScannerOption{ rego.WithPerResultTracing(true), rego.WithEmbeddedLibraries(true), + rego.WithIncludeDeprecatedChecks(false), } opts = append(opts, tt.opts...)