File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ jobs:
128128 type=raw,value=${{ env.FULL_TAG }},enable=true
129129 type=raw,value=${{ env.PREFIX }},enable=true
130130 - name : Build and push
131- uses : docker/build-push-action@v4
131+ uses : docker/build-push-action@v5
132132 with :
133133 context : .
134134 file : ${{ env.DOCKERFILE }}
@@ -213,7 +213,7 @@ jobs:
213213 # tags: |
214214 # type=raw,value=${{ env.FULL_TAG }},enable=true
215215 # - name: Build and push
216- # uses: docker/build-push-action@v4
216+ # uses: docker/build-push-action@v5
217217 # with:
218218 # context: .
219219 # file: Dockerfile.base-slim
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ jobs:
121121 type=raw,value=${{ env.PREFIX }}-latest,enable=${{ env.LATEST_FLAG }}
122122 type=raw,value=${{ env.RELEASE_VERSION }},enable=${{ env.LATEST_FLAG }}
123123 - name : Build and push
124- uses : docker/build-push-action@v4
124+ uses : docker/build-push-action@v5
125125 with :
126126 context : .
127127 file : ${{ env.DOCKERFILE }}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ jobs:
128128 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
129129 run : |
130130 snyk auth ${{ secrets.SNYK_TOKEN }}
131- snyk code test --sarif > snyk-code.sarif || true
131+ snyk code test --fail-on=upgradable -- sarif > snyk-code.sarif || true
132132
133133# # Build the docker image for testing
134134# - name: Build a Docker image
@@ -142,15 +142,15 @@ jobs:
142142 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
143143 run : |
144144 snyk auth ${{ secrets.SNYK_TOKEN }}
145- snyk container test --print-deps ${{ secrets.DOCKER_USER }}/${{ env.RELEASE_IMAGE_NAME }} \
145+ snyk container test --print-deps --fail-on=upgradable ${{ secrets.DOCKER_USER }}/${{ env.RELEASE_IMAGE_NAME }} \
146146 --username=${{ secrets.DOCKER_USER }} --password=${{ secrets.DOCKER_TOKEN }} --file=${{ env.DOCKERFILE }} .
147147
148148 - name : Container test
149149 env :
150150 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
151151 run : |
152152 snyk auth ${{ secrets.SNYK_TOKEN }}
153- snyk container test --print-deps ghcr.io/${{ secrets.DOCKER_USER }}/${{ env.RELEASE_IMAGE_NAME }} \
153+ snyk container test --print-deps ghcr.io/${{ secrets.DOCKER_USER }}/${{ env.RELEASE_IMAGE_NAME }} --fail-on=upgradable \
154154 --username=${{ secrets.DOCKER_USER }} --password=${{ secrets.DOCKER_TOKEN }} --file=${{ env.DOCKERFILE }} .
155155
156156 # Runs Snyk Container (Container and SCA) analysis and uploads result to Snyk.
You can’t perform that action at this time.
0 commit comments