Skip to content

Commit 5008de5

Browse files
committed
fix: correct attestation subjects
Use the original files as the source, rather than the file that is uploaded to the artifact, as that is actually a zip file (what?) Fixes: #1936
1 parent d6b44b8 commit 5008de5

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/CICD.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -275,19 +275,13 @@ jobs:
275275
unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
276276
echo "IS_RELEASE=${IS_RELEASE}" >> $GITHUB_OUTPUT
277277
278-
- name: "Attest artifact: tarball"
278+
- name: "Attest artifacts"
279279
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
280280
if: steps.is-release.outputs.IS_RELEASE
281281
with:
282-
subject-name: ${{ steps.package.outputs.PKG_NAME }}
283-
subject-digest: sha256:${{ steps.upload-tarball.outputs.artifact-digest }}
284-
285-
- name: "Attest artifact: Debian package"
286-
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
287-
if: 'steps.is-release.outputs.IS_RELEASE && steps.debian-package.outputs.DPKG_NAME'
288-
with:
289-
subject-name: ${{ steps.debian-package.outputs.DPKG_NAME }}
290-
subject-digest: sha256:${{ steps.upload-deb.outputs.artifact-digest }}
282+
subject-path: |
283+
${{ steps.package.outputs.PKG_PATH }}
284+
${{ steps.debian-package.outputs.DPKG_PATH }}
291285
292286
- name: Publish archives and packages
293287
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1

0 commit comments

Comments
 (0)