-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vivek Yadav
committed
Feb 5, 2024
1 parent
778c414
commit aa97216
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,13 @@ jobs: | |
docker tag $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:latest $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:latest | ||
docker push $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:latest | ||
- name: Generate SBOM | ||
uses: anchore/[email protected] | ||
with: | ||
image: public.ecr.aws/t4s8c0c3/${{ inputs.image }}:latest | ||
format: cyclonedx | ||
id: anchore-sbom | ||
|
||
- uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2 | ||
- name: Sign the images | ||
run: | | ||
|
@@ -65,4 +72,6 @@ jobs: | |
- name: Attest SBOM | ||
run: | | ||
cosign attest \ | ||
--yes --predicate sbom-x86_64.spdx.json --type spdxjson public.ecr.aws/t4s8c0c3/${{ inputs.image }}:latest | ||
--yes --predicate sbom-x86_64.spdx.json --type spdxjson public.ecr.aws/t4s8c0c3/${{ inputs.image }}:latest \ | ||
--certificate-identity https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} \ | ||
--certificate-oidc-issuer https://token.actions.githubusercontent.com | jq |