File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -102,23 +102,16 @@ jobs:
102102
103103 - name : Generate SBOM
104104 if : github.event_name != 'pull_request'
105- uses : anchore/sbom-action@v0
105+ uses : anchore/sbom-action@v0.20.8
106106 with :
107- image : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.push .outputs.digest }}
107+ image : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.short-sha .outputs.sha }}
108108 format : spdx-json
109109 output-file : sbom.spdx.json
110110
111111 - name : Upload SBOM as artifact
112112 if : github.event_name != 'pull_request'
113113 uses : actions/upload-artifact@v4
114114 with :
115- name : sbom- ${{ github. sha }}
115+ name : ${{ steps.short- sha.outputs.sha }}-sbom
116116 path : sbom.spdx.json
117117 retention-days : 90
118-
119- - name : Image digest
120- if : github.event_name != 'pull_request'
121- run : |
122- echo "Image pushed successfully!"
123- echo "Digest: ${{ steps.push.outputs.digest }}"
124- echo "Tags: ${{ steps.meta.outputs.tags }}"
You can’t perform that action at this time.
0 commit comments