You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect the following variable definition to be correct, it works and every property of the object has a valid type :
variable "virtual_machines" {
type = map(object({
ipv4_address = string
cpu = number
ram = number
disksize = number
annotation = string
}))
description = "List of virtual machines to be deployed"
}
Actual Behavior
KICS detects query fc5109bf-01fd-49fb-8bde-4492b543c34a which is Variable Without Type
Oddly enough it seems to be on the disksize = number line, don't know if it is relevant
Steps to Reproduce the Problem
(Command line arguments and flags used)
Build a sample terraform code as illustrated above
cgrard
changed the title
bug(<scope>): <title starting with lowercase letter>
bug: false positive with variable type detection
Jan 12, 2024
cgrard
changed the title
bug: false positive with variable type detection
bug(terraform): false positive with variable type detection
Jan 12, 2024
cgrard
changed the title
bug(terraform): false positive with variable type detection
bug(result): false positive with variable type detection
Jan 12, 2024
Unfortunately, we were unable to reproduce your results with KICS version 1.7.12 or the latest version, 2.0.1.
Could you kindly provide more information or a larger sample for us to address this issue? Additionally, could you test the latest KICS version, 2.0.1, to see if the problem persists? We believe it may have been resolved in this version.
Expected Behavior
I expect the following variable definition to be correct, it works and every property of the object has a valid type :
Actual Behavior
KICS detects query
fc5109bf-01fd-49fb-8bde-4492b543c34a
which isVariable Without Type
Oddly enough it seems to be on the
disksize = number
line, don't know if it is relevantSteps to Reproduce the Problem
(Command line arguments and flags used)
docker run -t -v ${PWD}:/path checkmarx/kics scan --path /path/platform --output-path /path --report-formats junit --output-path /path --output-name kics.xml
Specifications
The text was updated successfully, but these errors were encountered: