File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -244,14 +244,15 @@ jobs:
244244 - name : Determine trivy scan severity levels
245245 id : set_severity
246246 run : |
247- echo "${SCAN_HIGH_SEVERITY}"
248- if [[ "${SCAN_HIGH_SEVERITY}" == "false" ]]; then
247+ echo "${{ github.event.inputs.scan_high_severity}}"
248+ echo "${{ matrix.component.scan_high_severity}}"
249+ if [[ "${{ github.event.inputs.scan_high_severity }}" == "false" ]] || \
250+ [[ "${{ vars.SCAN_HIGH_SEVERITY }}" == "false" ]] || \
251+ [[ "${{ matrix.component.scan_high_severity }}" == "false" ]]; then
249252 echo "severity=CRITICAL" >> "$GITHUB_OUTPUT"
250253 else
251254 echo "severity=HIGH,CRITICAL" >> "$GITHUB_OUTPUT"
252255 fi
253- env :
254- SCAN_HIGH_SEVERITY : ${{ inputs.scan_high_severity }} || fromJson(vars.SCAN_HIGH_SEVERITY)
255256 - name : Run Trivy vulnerability scanner
256257 uses :
aquasecurity/[email protected] 257258 with :
You can’t perform that action at this time.
0 commit comments