Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

fix(ci): fix ci permissions

Matthew Kilgore101e6b080248
diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml
index 574cbc78..56c756c0 100644
--- a/.github/workflows/docker-publish.yaml
+++ b/.github/workflows/docker-publish.yaml
@@ -26,6 +26,7 @@ jobs:
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
+ attestations: write
id-token: write
steps:
@@ -92,3 +93,11 @@ jobs:
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
+
+ - name: Attest
+ uses: actions/attest-build-provenance@v1
+ id: attest
+ with:
+ subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
+ subject-digest: ${{ steps.build-and-push.outputs.digest }}
+ push-to-registry: true
\ No newline at end of file