Skip to content

Commit 62bcee1

Browse files
Merge branch 'main' into feat/add-trivy
2 parents 4d5e934 + 29713df commit 62bcee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ jobs:
266266
run: docker logout ${{ steps.login-ecr.outputs.registry }}
267267

268268
- name: Scan image
269-
if: ${{ skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN) != true && matrix.component.skip_image_scan != true }}
269+
if: ${{ inputs.skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN) != true && matrix.component.skip_image_scan != true }}
270270
id: get-ecr-scan-result
271271
uses: ./tmp/github-workflows/.github/actions/get-ecr-scan-result
272272
with:
@@ -276,7 +276,7 @@ jobs:
276276
ecr_repository: ${{ matrix.component.ecr_repository }}
277277
image_tag: ${{ matrix.component.image_tag }}
278278
- name: Check scan results
279-
if: ${{ skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN) != true && matrix.component.skip_image_scan != true }}
279+
if: ${{ inputs.skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN) != true && matrix.component.skip_image_scan != true }}
280280
run: |
281281
if [ "${{ steps.get-ecr-scan-result.outputs.critical }}" != "null" ] || [ "${{ steps.get-ecr-scan-result.outputs.high }}" != "null" ]; then
282282
echo "Docker image contains vulnerabilities at critical or high level"

0 commit comments

Comments
 (0)