Loading capif/templates/ci_staging.gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -124,7 +124,7 @@ staging_cvs: curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b ../ echo "### grype version###" ../grype version DIRECTORY=../grype-outputs DIRECTORY=./grype-outputs if [ ! -d "$DIRECTORY" ]; then mkdir $DIRECTORY echo "Directory created" Loading @@ -139,14 +139,14 @@ staging_cvs: docker build -t $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG . cd $TMP_PWD echo "### Container Vulnerability Scanning###" ../grype $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG --scope all-layers > ../grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt ../grype $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG --scope all-layers > ./grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt echo "----------------------------------------------------" cat ../grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt cat ./grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt artifacts: untracked: false paths: - ../grype-outputs/*.txt - ./grype-outputs/*.txt when: on_success expire_in: "1 week" <<: *staging_common Loading Loading
capif/templates/ci_staging.gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -124,7 +124,7 @@ staging_cvs: curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b ../ echo "### grype version###" ../grype version DIRECTORY=../grype-outputs DIRECTORY=./grype-outputs if [ ! -d "$DIRECTORY" ]; then mkdir $DIRECTORY echo "Directory created" Loading @@ -139,14 +139,14 @@ staging_cvs: docker build -t $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG . cd $TMP_PWD echo "### Container Vulnerability Scanning###" ../grype $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG --scope all-layers > ../grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt ../grype $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG --scope all-layers > ./grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt echo "----------------------------------------------------" cat ../grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt cat ./grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt artifacts: untracked: false paths: - ../grype-outputs/*.txt - ./grype-outputs/*.txt when: on_success expire_in: "1 week" <<: *staging_common Loading