File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
.github/actions/scan-image Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,13 @@ runs:
55
55
IMAGE_TAG=$(echo "${{ inputs.image-ref }}" | cut -d':' -f2 | cut -d'@' -f1)
56
56
[[ "$IMAGE_TAG" == "$IMAGE_NAME" ]] && IMAGE_TAG="latest"
57
57
SAFE_NAME=$(echo "${IMAGE_NAME}-${IMAGE_TAG}" | sed 's/[\/:]/-/g')
58
+ SAFE_IMAGE_NAME=$(echo "${IMAGE_NAME}" | sed 's/[\/:]/-/g')
58
59
{
59
60
echo "image_name=${IMAGE_NAME}"
60
61
echo "image_tag=${IMAGE_TAG}"
61
62
echo "safe_name=${SAFE_NAME}"
63
+ echo "safe_image_name=${SAFE_IMAGE_NAME}"
64
+
62
65
} >> "$GITHUB_OUTPUT"
63
66
64
67
- name : Scan image with Grype
@@ -122,7 +125,8 @@ runs:
122
125
uses : github/codeql-action/upload-sarif@v3
123
126
with :
124
127
sarif_file : ${{ inputs.output-file }}
125
- category : ' ${{ inputs.category-prefix }}${{ steps.image-id.outputs.image_id }}'
128
+ category : ' ${{ inputs.category-prefix }}${{ steps.image_details.outputs.safe_image_name }}'
129
+
126
130
127
131
- name : Archive scan results
128
132
if : ${{ !cancelled() && inputs.upload-sarif == 'true' }}
You can’t perform that action at this time.
0 commit comments