File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments