Skip to content

Commit bc0c27f

Browse files
Revert change to results query name in expected results and fix positive22 false positive
1 parent 5620270 commit bc0c27f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/queries/common/passwords_and_secrets/test/positive22.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# "Heroku API Key" - 9a3650af-5b88-48cd-ab89-cd77fd0b633f positive-test
1+
# "Her oku API Key"(extra space to prevent false positive) - 9a3650af-5b88-48cd-ab89-cd77fd0b633f positive-test
22
provider "heroku" {
33
email = "ops@company.com"
44
api_key = "C71AAAAE-1D1D-1D1D-1D1D-1D1D1D1D1D1D" # positive1

assets/queries/common/passwords_and_secrets/test/positive_expected_result.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,13 @@
348348
"fileName": "positive39.tf"
349349
},
350350
{
351-
"queryName": "Passwords And Secrets - AWS Access Key",
351+
"queryName": "Passwords And Secrets - AWS Context-specific credential",
352352
"severity": "HIGH",
353353
"line": 15,
354354
"fileName": "positive40.tf"
355355
},
356356
{
357-
"queryName": "Passwords And Secrets - AWS Access Key",
357+
"queryName": "Passwords And Secrets - AWS Certificate",
358358
"severity": "HIGH",
359359
"line": 16,
360360
"fileName": "positive40.tf"

0 commit comments

Comments
 (0)