Skip to content

Commit 2cc2139

Browse files
committed
ci(gha): add steps to perform container image scan
1 parent 43fb209 commit 2cc2139

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,12 @@ jobs:
225225
sbom: true
226226
provenance: true
227227
- name: Convert Image to Tar
228-
run: docker save -o companieshouse.tar ${{ steps.meta.outputs.tags }}
228+
run: |
229+
docker images
230+
tags="${{ steps.meta.outputs.tags }}"
231+
tags="${tags//,/ }" # replace commas with spaces
232+
echo "Saving images: $tags"
233+
docker save -o companieshouse.tar ${{ steps.meta.outputs.tags }}
229234
- name: Scan Image
230235
uses: aquasecurity/[email protected]
231236
with:

0 commit comments

Comments
 (0)