mirror of
https://github.com/sharkdp/fd.git
synced 2026-08-29 02:32:00 +08:00
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
This commit is contained in:
@@ -275,19 +275,13 @@ jobs:
|
||||
unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
|
||||
echo "IS_RELEASE=${IS_RELEASE}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: "Attest artifact: tarball"
|
||||
- name: "Attest artifacts"
|
||||
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
|
||||
if: steps.is-release.outputs.IS_RELEASE
|
||||
with:
|
||||
subject-name: ${{ steps.package.outputs.PKG_NAME }}
|
||||
subject-digest: sha256:${{ steps.upload-tarball.outputs.artifact-digest }}
|
||||
|
||||
- name: "Attest artifact: Debian package"
|
||||
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
|
||||
if: 'steps.is-release.outputs.IS_RELEASE && steps.debian-package.outputs.DPKG_NAME'
|
||||
with:
|
||||
subject-name: ${{ steps.debian-package.outputs.DPKG_NAME }}
|
||||
subject-digest: sha256:${{ steps.upload-deb.outputs.artifact-digest }}
|
||||
subject-path: |
|
||||
${{ steps.package.outputs.PKG_PATH }}
|
||||
${{ steps.debian-package.outputs.DPKG_PATH }}
|
||||
|
||||
- name: Publish archives and packages
|
||||
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
|
||||
|
||||
Reference in New Issue
Block a user