Skip to content

Commit f5115ad

Browse files
fix: add fromJson
1 parent 961ceb7 commit f5115ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-docker-artifacts.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,14 @@ jobs:
244244
- name: Determine trivy scan severity levels
245245
id: set_severity
246246
run: |
247+
echo "${SCAN_HIGH_SEVERITY}"
247248
if [[ "${SCAN_HIGH_SEVERITY}" == "false" ]]; then
248249
echo "severity=CRITICAL" >> "$GITHUB_OUTPUT"
249250
else
250251
echo "severity=HIGH,CRITICAL" >> "$GITHUB_OUTPUT"
251252
fi
252253
env:
253-
SCAN_HIGH_SEVERITY: ${{ inputs.scan_high_severity }}
254+
SCAN_HIGH_SEVERITY: ${{ inputs.scan_high_severity }} || fromJson(vars.SCAN_HIGH_SEVERITY)
254255
- name: Run Trivy vulnerability scanner
255256
uses: aquasecurity/[email protected]
256257
with:

0 commit comments

Comments
 (0)