Skip to content

Commit

Permalink
skip image scan
Browse files Browse the repository at this point in the history
  • Loading branch information
dvvanessastoiber committed Nov 21, 2023
1 parent 5237589 commit 2c4a4be
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build-single-product-part.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,18 +251,18 @@ jobs:
echo $ROLE | sed 's/./& /g'
env:
ROLE: ${{ secrets.DV_AWS_ECR_ROLE }}
- name: scan image
id: get-ecr-scan-result
uses: ./tmp/github-workflows/.github/actions/get-ecr-scan-result
with:
aws_role: ${{ secrets.DV_AWS_ECR_ROLE }}
aws_region: ${{ vars.DV_AWS_REGION }}
ecr_registry: ${{ secrets.DV_AWS_ECR_REGISTRY }}
ecr_repository: ${{ steps.get-parameters.outputs.ecr_repo }}
image_tag: ${{ inputs.image_tag1 }}
- name: check scan results
run: |
if [ "${{ steps.get-ecr-scan-result.outputs.critical }}" != "null" ] || [ "${{ steps.get-ecr-scan-result.outputs.high }}" != "null" ]; then
echo "Docker image contains vulnerabilities at critical or high level"
exit 1 #exit execution due to docker image vulnerabilities
fi
# - name: scan image
# id: get-ecr-scan-result
# uses: ./tmp/github-workflows/.github/actions/get-ecr-scan-result
# with:
# aws_role: ${{ secrets.DV_AWS_ECR_ROLE }}
# aws_region: ${{ vars.DV_AWS_REGION }}
# ecr_registry: ${{ secrets.DV_AWS_ECR_REGISTRY }}
# ecr_repository: ${{ steps.get-parameters.outputs.ecr_repo }}
# image_tag: ${{ inputs.image_tag1 }}
# - name: check scan results
# run: |
# if [ "${{ steps.get-ecr-scan-result.outputs.critical }}" != "null" ] || [ "${{ steps.get-ecr-scan-result.outputs.high }}" != "null" ]; then
# echo "Docker image contains vulnerabilities at critical or high level"
# exit 1 #exit execution due to docker image vulnerabilities
# fi

0 comments on commit 2c4a4be

Please sign in to comment.