Skip to content
Snippets Groups Projects
Commit 5162e4cf authored by Rohit Shambhuni's avatar Rohit Shambhuni
Browse files

Removing redundant scanning code

parent c707f859
No related branches found
No related tags found
No related merge requests found
Pipeline #15363253 passed
Loading
Loading
@@ -49,22 +49,12 @@ container_image_scan:
stage: validate
variables:
IMAGES: $CI_REGISTRY_IMAGE/renovate:${CI_COMMIT_REF_SLUG}
image:
name: registry.gitlab.com/gitlab-com/gl-security/appsec/container-scanners:latest
script:
- BUILD_WORKING_DIRECTORY="$PWD"
- cd /run
- ./appsec-container-scan "${IMAGES}" > $BUILD_WORKING_DIRECTORY/gl-container-scanning-report.json
- cd $BUILD_WORKING_DIRECTORY
needs:
- container_image_build
extends:
- .kaniko_appsec_scan
artifacts:
reports:
container_scanning: gl-container-scanning-report.json
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 
# Tags use the git tag, not the slug
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment