Skip to content

Commit

Permalink
returned scan-image
Browse files Browse the repository at this point in the history
  • Loading branch information
ATGardner committed Oct 18, 2023
1 parent ba2422e commit 3143218
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions build/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,27 +137,27 @@ steps:
# on:
# - success

# scan-image:
# stage: Build
# title: scan docker image
# image: quay.io/codefresh/snyk-cli:latest
# shell: bash
# environment:
# - SNYK_TOKEN=${{SNYK_TOKEN}}
# - LOCAL_IMAGE_REF=${{IMAGE_NAME}}:${{RELEASE_VER}}
# commands:
# - |
# snyk test --severity-threshold=${{SNYK_SEVERITY_THRESHOLD}} || fail=1
# snyk container test --severity-threshold=${{SNYK_SEVERITY_THRESHOLD}} --file=Dockerfile ${LOCAL_IMAGE_REF}
# if [ "$fail" == "1" ]; then exit 1; fi
# when:
# steps:
# - name: build
# on:
# - success
# # - name: codegen
# # on:
# # - success
scan-image:
stage: Build
title: scan docker image
image: quay.io/codefresh/snyk-cli:latest
shell: bash
environment:
- SNYK_TOKEN=${{SNYK_TOKEN}}
- LOCAL_IMAGE_REF=${{IMAGE_NAME}}:${{RELEASE_VER}}
commands:
- |
snyk test --severity-threshold=${{SNYK_SEVERITY_THRESHOLD}} || fail=1
snyk container test --severity-threshold=${{SNYK_SEVERITY_THRESHOLD}} --file=Dockerfile ${LOCAL_IMAGE_REF}
if [ "$fail" == "1" ]; then exit 1; fi
when:
steps:
- name: download_modules
on:
- success
# - name: codegen
# on:
# - success

build_binaries:
<<: *deps
Expand Down Expand Up @@ -197,7 +197,7 @@ steps:
delay: 1
when:
steps:
- name: download_modules
- name: scan-image
on:
- success
# - name: codegen
Expand Down

0 comments on commit 3143218

Please sign in to comment.