@@ -26,7 +26,7 @@ const main = async () => {
26
26
failThreshold !== 'low' &&
27
27
failThreshold !== 'informational'
28
28
) {
29
- throw new Error ( 'failThreshold input value is invalid' )
29
+ throw new Error ( 'fail_threshold input value is invalid' )
30
30
}
31
31
core . debug ( `Repository:${ repository } , Tag:${ tag } ` )
32
32
const ECR = new AWS . ECR ( )
@@ -67,22 +67,22 @@ const main = async () => {
67
67
const medium = counts . MEDIUM || 0
68
68
const low = counts . LOW || 0
69
69
const informational = counts . INFORMATIONAL || 0
70
- const undefined = counts . UNDEFINED || 0
71
- const total = critical + high + medium + low + informational + undefined
70
+ const indeterminate = counts . UNDEFINED || 0
71
+ const total = critical + high + medium + low + informational + indeterminate
72
72
core . setOutput ( 'critical' , critical . toString ( ) )
73
73
core . setOutput ( 'high' , high . toString ( ) )
74
74
core . setOutput ( 'medium' , medium . toString ( ) )
75
75
core . setOutput ( 'low' , low . toString ( ) )
76
76
core . setOutput ( 'informational' , informational . toString ( ) )
77
- core . setOutput ( 'undefined' , undefined . toString ( ) )
77
+ core . setOutput ( 'undefined' , indeterminate . toString ( ) )
78
78
core . setOutput ( 'total' , total . toString ( ) )
79
79
console . log ( 'Vulnerabilities found:' )
80
80
console . log ( `${ critical . toString ( ) . padStart ( 3 , ' ' ) } Critical` )
81
81
console . log ( `${ high . toString ( ) . padStart ( 3 , ' ' ) } High` )
82
82
console . log ( `${ medium . toString ( ) . padStart ( 3 , ' ' ) } Medium` )
83
83
console . log ( `${ low . toString ( ) . padStart ( 3 , ' ' ) } Low` )
84
84
console . log ( `${ informational . toString ( ) . padStart ( 3 , ' ' ) } Informational` )
85
- console . log ( `${ undefined . toString ( ) . padStart ( 3 , ' ' ) } Undefined` )
85
+ console . log ( `${ indeterminate . toString ( ) . padStart ( 3 , ' ' ) } Undefined` )
86
86
console . log ( '=================' )
87
87
console . log ( `${ total . toString ( ) . padStart ( 3 , ' ' ) } Total` )
88
88
0 commit comments