Skip to content

Commit 6b58bb7

Browse files
committed
adapt condition, remove fromJson
1 parent 1d867e2 commit 6b58bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ jobs:
262262
echo "matrix.component.skip_image_scan = ${{ matrix.component.skip_image_scan }}"
263263
echo "parsed SKIP_IMAGE_SCAN = ${{ fromJson(vars.SKIP_IMAGE_SCAN || 'false') }}"
264264
- name: Run Trivy vulnerability scanner
265-
if: ${{ inputs.skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN || 'false') != true && matrix.component.skip_image_scan != true }}
265+
if: ${{ !inputs.skip_image_scan && !(vars.SKIP_IMAGE_SCAN == 'true') && !matrix.component.skip_image_scan }}
266266
uses: aquasecurity/[email protected]
267267
with:
268268
image-ref: ${{ vars.DV_AWS_ECR_REGISTRY }}/${{ matrix.component.ecr_repository }}:${{ matrix.component.image_tag }}

0 commit comments

Comments
 (0)