Skip to content

Commit c7a5c18

Browse files
authored
Add fallback to vars.SKIP_IMAGE_SCAN
1 parent 29713df commit c7a5c18

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
@@ -244,7 +244,7 @@ jobs:
244244
run: docker logout ${{ steps.login-ecr.outputs.registry }}
245245

246246
- name: Scan image
247-
if: ${{ inputs.skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN) != true && matrix.component.skip_image_scan != true }}
247+
if: ${{ inputs.skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN || 'false') != true && matrix.component.skip_image_scan != true }}
248248
id: get-ecr-scan-result
249249
uses: ./tmp/github-workflows/.github/actions/get-ecr-scan-result
250250
with:
@@ -254,7 +254,7 @@ jobs:
254254
ecr_repository: ${{ matrix.component.ecr_repository }}
255255
image_tag: ${{ matrix.component.image_tag }}
256256
- name: Check scan results
257-
if: ${{ inputs.skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN) != true && matrix.component.skip_image_scan != true }}
257+
if: ${{ inputs.skip_image_scan != true && fromJson(vars.SKIP_IMAGE_SCAN || 'false') != true && matrix.component.skip_image_scan != true }}
258258
run: |
259259
if [ "${{ steps.get-ecr-scan-result.outputs.critical }}" != "null" ] || [ "${{ steps.get-ecr-scan-result.outputs.high }}" != "null" ]; then
260260
echo "Docker image contains vulnerabilities at critical or high level"

0 commit comments

Comments
 (0)