Skip to content

Commit 0201bd9

Browse files
fix: add all options
1 parent f5115ad commit 0201bd9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)