From 1a12292eac50a1a4bec4e98f32c43564e51cff1f Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Wed, 9 Oct 2024 13:56:56 +0400 Subject: [PATCH] use inputs..default Signed-off-by: knqyf263 --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index efacf98..ca58189 100644 --- a/action.yaml +++ b/action.yaml @@ -154,7 +154,7 @@ runs: set_env_var_if_provided "TRIVY_EXIT_CODE" "${{ inputs.exit-code }}" "" set_env_var_if_provided "TRIVY_IGNORE_UNFIXED" "${{ inputs.ignore-unfixed }}" "false" set_env_var_if_provided "TRIVY_PKG_TYPES" "${{ inputs.vuln-type }}" "os,library" - set_env_var_if_provided "TRIVY_SEVERITY" "${{ inputs.severity }}" "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL" + set_env_var_if_provided "TRIVY_SEVERITY" "${{ inputs.severity }}" "${{ inputs.severity.default }}" set_env_var_if_provided "TRIVY_FORMAT" "${{ inputs.format }}" "table" set_env_var_if_provided "TRIVY_TEMPLATE" "${{ inputs.template }}" "" set_env_var_if_provided "TRIVY_OUTPUT" "${{ inputs.output }}" ""