Skip to content

Commit 8a7ff7d

Browse files
authored
Merge pull request #1941 from tmccombs/fix-attest
Fix attest
2 parents d6b44b8 + 45646e2 commit 8a7ff7d

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/CICD.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ jobs:
259259
with:
260260
name: ${{ steps.package.outputs.PKG_NAME }}
261261
path: ${{ steps.package.outputs.PKG_PATH }}
262+
compression-level: 0 # tarball is already compressed
262263

263264
- name: "Artifact upload: Debian package"
264265
id: upload-deb
@@ -267,6 +268,7 @@ jobs:
267268
with:
268269
name: ${{ steps.debian-package.outputs.DPKG_NAME }}
269270
path: ${{ steps.debian-package.outputs.DPKG_PATH }}
271+
compression-level: 0 # deb files are already compressed
270272

271273
- name: Check for release
272274
id: is-release
@@ -275,19 +277,13 @@ jobs:
275277
unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
276278
echo "IS_RELEASE=${IS_RELEASE}" >> $GITHUB_OUTPUT
277279
278-
- name: "Attest artifact: tarball"
280+
- name: "Attest artifacts"
279281
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
280282
if: steps.is-release.outputs.IS_RELEASE
281283
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 }}
284+
subject-path: |
285+
${{ steps.package.outputs.PKG_PATH }}
286+
${{ steps.debian-package.outputs.DPKG_PATH }}
291287
292288
- name: Publish archives and packages
293289
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1

0 commit comments

Comments
 (0)