Skip to content

Commit de38f5e

Browse files
committed
need to use skip_message for skips
Signed-off-by: Amndeep Singh Mann <[email protected]>
1 parent 50b7130 commit de38f5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/heimdall_tools/asff_mapper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ def subfindings(finding)
127127
when 'NOT_AVAILABLE'
128128
# primary meaning is that the check could not be performed due to a service outage or API error, but it's also overloaded to mean NOT_APPLICABLE so technically 'skipped' or 'error' could be applicable, but AWS seems to do the equivalent of skipped
129129
subfinding['status'] = 'skipped'
130-
subfinding['message'] = statusreason if statusreason
130+
subfinding['skip_message'] = statusreason if statusreason
131131
else
132132
subfinding['status'] = 'error' # not a valid value for the status enum
133133
subfinding['message'] = statusreason if statusreason
134134
end
135135
else
136136
subfinding['status'] = 'skipped' # if no compliance status is provided which is a weird but possible case, then skip
137-
subfinding['message'] = statusreason if statusreason
137+
subfinding['skip_message'] = statusreason if statusreason
138138
end
139139

140140
subfinding['code_desc'] = external_product_handler(finding['ProductArn'], finding, :subfindings_code_desc, '')

0 commit comments

Comments
 (0)