Skip to content

Commit 00a217c

Browse files
committed
1
1 parent aed9421 commit 00a217c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/ghcr.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff 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 }}"

0 commit comments

Comments
 (0)