Skip to content

Commit

Permalink
Merge pull request #6873 from Checkmarx/kics-1168
Browse files Browse the repository at this point in the history
fix(query): iam_access_analyzer_not_enabled skipping files
  • Loading branch information
asofsilva authored Feb 15, 2024
2 parents 065c132 + a36b28b commit 785272b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import data.generic.common as common_lib

CxPolicy[result] {
paths := [p |
[path, value] := walk(tf)
[path, _] := walk(tf)
p := path
]

Expand All @@ -18,8 +18,9 @@ CxPolicy[result] {

not_defined(document_indexes)

doc := input.document[document_indexes[0]]
contains(doc.file, ".tf")
indexes := document_indexes[i]
doc := input.document[indexes]
contains(doc.file, ".tf")

result := {
"documentId": doc.id,
Expand Down

0 comments on commit 785272b

Please sign in to comment.