Skip to content

Commit fb9ae21

Browse files
Fix: add if condition for trivy
1 parent 3babea3 commit fb9ae21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ jobs:
241241
DOCKER_BUILD_SUMMARY: false
242242

243243
- name: Run Trivy vulnerability scanner
244+
if: ${{ inputs.skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN || 'false') != true && matrix.component.skip_image_scan != true }}
244245
uses: aquasecurity/[email protected]
245246
with:
246247
image-ref: ${{ vars.DV_AWS_ECR_REGISTRY }}/${{ matrix.component.ecr_repository }}:${{ matrix.component.image_tag }}

0 commit comments

Comments
 (0)