-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attach SBOM attestation to container image
- Loading branch information
Showing
2 changed files
with
6 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 |
---|---|---|
|
@@ -11,6 +11,7 @@ on: | |
- main | ||
- staging | ||
- trying | ||
- spike/attest-sbom | ||
- "renovate/**" | ||
tags: | ||
- '[0-9][0-9].[0-9]+.[0-9]+' | ||
|
@@ -87,7 +88,7 @@ jobs: | |
elif [[ $TRIGGER == "push" && $GITHUB_REF == "refs/heads/main" ]]; then | ||
echo "exporting dev as target helm repo: ${{ env.DEV_REPO_HELM_URL }}" | ||
echo "helm_repo=${{ env.DEV_REPO_HELM_URL }}" >> $GITHUB_OUTPUT | ||
elif [[ ( $TRIGGER == "create" || $TRIGGER == "push" ) && $GITHUB_REF == refs/tags/* ]]; then | ||
elif [[ ( $TRIGGER == "create" || $TRIGGER == "push" ) && ($GITHUB_REF == refs/tags/* || $GITHUB_REF == refs/heads/spike/attest-sbom) ]]; then | ||
echo "exporting stable as target helm repo: ${{ env.STABLE_REPO_HELM_URL }}" | ||
echo "helm_repo=${{ env.STABLE_REPO_HELM_URL }}" >> $GITHUB_OUTPUT | ||
else | ||
|
@@ -336,6 +337,8 @@ jobs: | |
# default value in the makefile if called from this action, but not otherwise (i.e. when called locally). | ||
# This is needed for the HELM_REPO variable. | ||
- uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # tag=v3.3.0 | ||
- name: Install Syft | ||
uses: anchore/sbom-action/[email protected] | ||
- name: Publish Docker image and Helm chart | ||
run: make -e publish | ||
# Output the name of the published image to the Job output for later use | ||
|
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