Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
What did our provenance file look like
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Eltgroth <jeltgroth@vmware.com>
  • Loading branch information
joeeltgroth committed Aug 15, 2023
1 parent 3bc87c6 commit 178ba90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/srp-helper/publish-container/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ source "${SRP_WORKING_DIR}"/required-envs.sh unset
rm "${SRP_WORKING_DIR}/required-envs.sh"
observer_agent -m stop_observer -f network_provenance.json

echo "version set to ${version}"
echo "BUILDPACK set to ${BUILDPACK}"

key="${REGISTRY}/${BUILDPACK}-buildpack:${version}"
action="publish"
image="${REGISTRY}/${BUILDPACK}-buildpack:${version}"
Expand All @@ -44,4 +47,6 @@ srp provenance add-output docker \
--digest="${image##*@}"

srp provenance action import-observation --name="publish" --file=network_provenance.json
srp provenance action stop
srp provenance action stop

cat "${SRP_WORKING_DIR}"/_provenance.json
1 change: 1 addition & 0 deletions .github/workflows/create-buildpack-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
client-id: ${{ secrets.SRP_CLIENT_ID }}
client-secret: ${{ secrets.SRP_CLIENT_SECRET }}
env:
buildpack: ${{ github.event.inputs.buildpack }}
url: ${{ env.DEPENDENCY_BASE_URL }}
registry: "${{ env.REGISTRY }}/${{ env.CONTAINER_PATH }}"
target: "buildpacks.${{ github.event.inputs.buildpack }}.images.publish"
Expand Down

0 comments on commit 178ba90

Please sign in to comment.