File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,10 +115,11 @@ jobs:
115115 if : always()
116116 run : |
117117 echo "Scan output for ghcr.io/nhsdigital/eps-devcontainers/base:${DOCKER_TAG}-${ARCHITECTURE}"
118- if [ -f .out/scan_results_docker .txt ]; then
119- cat .out/scan_results_docker .txt
118+ if [ -f ".grype_out/grype_${CONTAINER_NAME}_${IMAGE_TAG} .txt" ]; then
119+ cat ".grype_out/grype_${CONTAINER_NAME}_${IMAGE_TAG} .txt"
120120 fi
121121 env :
122+ CONTAINER_NAME : ' ${{ inputs.container_name }}'
122123 ARCHITECTURE : ' ${{ matrix.arch }}'
123124 DOCKER_TAG : ' ${{ inputs.docker_tag }}'
124125 - name : Push tagged image and rebuild for github actions
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ build-githubactions-image: guard-BASE_IMAGE_NAME guard-BASE_IMAGE_TAG guard-IMAG
9898scan-image : guard-CONTAINER_NAME guard-BASE_FOLDER guard-IMAGE_TAG
9999 grype " ${CONTAINER_PREFIX} $$ {CONTAINER_NAME}:$$ {IMAGE_TAG}" \
100100 --scope all-layers \
101- --sort-by severity
101+ --sort-by severity \
102+ --file " .grype_out/grype_${CONTAINER_NAME} _${IMAGE_TAG} .txt"
102103
103104scan-image-json : guard-CONTAINER_NAME guard-BASE_FOLDER guard-IMAGE_TAG
104105 grype " ${CONTAINER_PREFIX} $$ {CONTAINER_NAME}:$$ {IMAGE_TAG}" \
You can’t perform that action at this time.
0 commit comments