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 @@ -240,7 +240,7 @@ jobs:
240240 run : docker logout ${{ steps.login-ecr.outputs.registry }}
241241
242242 - name : Scan image
243- if : ${{ matrix.component.skip_image_scan != true }}
243+ if : ${{ fromJson(vars.SKIP_IMAGE_SCAN) != true && matrix.component.skip_image_scan != true }}
244244 id : get-ecr-scan-result
245245 uses : ./tmp/github-workflows/.github/actions/get-ecr-scan-result
246246 with :
@@ -250,7 +250,7 @@ jobs:
250250 ecr_repository : ${{ matrix.component.ecr_repository }}
251251 image_tag : ${{ matrix.component.image_tag }}
252252 - name : Check scan results
253- if : ${{ matrix.component.skip_image_scan != true }}
253+ if : ${{ fromJson(vars.SKIP_IMAGE_SCAN) != true && matrix.component.skip_image_scan != true }}
254254 run : |
255255 if [ "${{ steps.get-ecr-scan-result.outputs.critical }}" != "null" ] || [ "${{ steps.get-ecr-scan-result.outputs.high }}" != "null" ]; then
256256 echo "Docker image contains vulnerabilities at critical or high level"
You can’t perform that action at this time.
0 commit comments