From 052c642dd6d4524014d7d3d82c29ee12dcc40fa4 Mon Sep 17 00:00:00 2001 From: Niclas Thall Date: Tue, 9 Apr 2024 12:00:46 +0200 Subject: [PATCH] fix(sgtrivy): update misconfig-scanners Trivy has added support for scanning terraform plan snapshots and thus so updated the config names. See [PR](https://github.com/aquasecurity/trivy/pull/6176) --- tools/sgtrivy/tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sgtrivy/tools.go b/tools/sgtrivy/tools.go index 9541cf94..74de6e67 100644 --- a/tools/sgtrivy/tools.go +++ b/tools/sgtrivy/tools.go @@ -34,7 +34,7 @@ func CheckTerraformCommand(ctx context.Context, dir string) *exec.Cmd { args := []string{ "config", "--misconfig-scanners", - "terraform,terraformplan", + "terraform,terraformplan-json,terraformplan-snapshot", "--exit-code", "1", dir,