File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262 with :
6363 context : .
6464 push : true
65- load : true
65+ sbom : true
6666 tags : ${{ steps.meta.outputs.tags }}
6767 labels : ${{ steps.meta.outputs.labels }}
6868 build-args : |
6969 SQUID_VERSION=${{ steps.get_version.outputs.VERSION }}
70-
71- - name : Extract SBOM
72- run : |
73- docker create --name temp-container "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build_and_push.outputs.digest }}"
74- docker cp temp-container:/sbom.spdx.json ./sbom.spdx.json
75- docker rm temp-container
76- - name : Install ORAS
77- uses : oras-project/setup-oras@v1
78-
79- - name : Attach SBOM (oras)
80- run : |
81- oras attach \
82- --artifact-type application/spdx+json \
83- --distribution-spec v1.1-referrers-api \
84- "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build_and_push.outputs.digest }}" \
85- ./sbom.spdx.json:application/spdx+json
You can’t perform that action at this time.
0 commit comments