Skip to content

Commit

Permalink
refactor(checks): Deprecate AVD-DS-0024
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed Dec 7, 2024
1 parent a6ecb69 commit bb23b9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions checks/docker/run_apt_get_dist_upgrade.rego
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# - input: schema["dockerfile"]
# custom:
# id: DS024
# deprecated: true
# avd_id: AVD-DS-0024
# severity: HIGH
# short_code: no-dist-upgrade
Expand Down
2 changes: 2 additions & 0 deletions test/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
},
}
Expand Down
1 change: 1 addition & 0 deletions test/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)

Expand Down

0 comments on commit bb23b9c

Please sign in to comment.