From f9f3c9c33c866b85f3dcc32bc961b888f18a2b05 Mon Sep 17 00:00:00 2001 From: Nick Harin Date: Sun, 5 Jul 2026 09:50:28 +0500 Subject: [PATCH] Attest the Composer dist zipball, not just the release tarball --- .github/workflows/attest.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/attest.yml b/.github/workflows/attest.yml index 68e4329..6e34344 100644 --- a/.github/workflows/attest.yml +++ b/.github/workflows/attest.yml @@ -33,6 +33,21 @@ jobs: with: subject-path: ${{ env.tarball }} + # Composer installs the GitHub zipball, not the tarball above. Attest that + # exact artifact too, so composer-attest can verify the package at install. + - name: Fetch the Composer dist (zipball) + env: + GH_TOKEN: ${{ github.token }} + run: | + curl -fsSL -H "Authorization: Bearer ${GH_TOKEN}" \ + "https://api.github.com/repos/${GITHUB_REPOSITORY}/zipball/${GITHUB_SHA}" \ + -o composer-dist.zip + + - name: Attest the Composer dist + uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1 + with: + subject-path: composer-dist.zip + - name: Download attestation bundle env: GH_TOKEN: ${{ github.token }}