From f942f2dc18140d12a9d3b31683e6acf490ec84db Mon Sep 17 00:00:00 2001 From: Michael Zalimeni Date: Fri, 19 Jan 2024 12:08:54 -0500 Subject: [PATCH] security: fix syntax for release scan config (#20279) Correct syntax errors introduced in #20264. --- .release/security-scan.hcl | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.release/security-scan.hcl b/.release/security-scan.hcl index 4230eca420..6a784734e9 100644 --- a/.release/security-scan.hcl +++ b/.release/security-scan.hcl @@ -17,8 +17,8 @@ container { alpine_secdb = true secrets { - matchers = { - // Use default list, minus Vault (`hashicorp`), which has experienced false positives. + matchers { + // Use most of default list, minus Vault (`hashicorp`), which has experienced false positives. // See https://github.com/hashicorp/security-scanner/blob/v0.0.2/pkg/scanner/secrets.go#L130C2-L130C2 known = [ // "hashicorp", @@ -53,16 +53,18 @@ binary { # (yarn.lock) in the Consul binary. This is something we may investigate in the future. secrets { - // Use most of default list, minus Vault (`hashicorp`), which has experienced false positives. - // See https://github.com/hashicorp/security-scanner/blob/v0.0.2/pkg/scanner/secrets.go#L130C2-L130C2 - known = [ - // "hashicorp", - "aws", - "google", - "slack", - "github", - "azure", - "npm", - ] + matchers { + // Use most of default list, minus Vault (`hashicorp`), which has experienced false positives. + // See https://github.com/hashicorp/security-scanner/blob/v0.0.2/pkg/scanner/secrets.go#L130C2-L130C2 + known = [ + // "hashicorp", + "aws", + "google", + "slack", + "github", + "azure", + "npm", + ] + } } }