Skip to content

Commit 84e4a56

Browse files
committed
Add attestations
1 parent d92b10c commit 84e4a56

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

perl-module-release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ env:
2020

2121
permissions:
2222
contents: write
23+
id-token: write
24+
attestations: write
2325

2426
on:
2527
push:
@@ -94,12 +96,24 @@ jobs:
9496
perl -00 -lne 'next unless /\A\d+\.\d+(_\d+)?/; print; last' Changes > Changes-latest
9597
cat Changes-latest
9698
id: extract
99+
# https://cli.github.com/manual/gh_attestation_verify
100+
# DISTRO_FILE is the .tar.gz in the release
101+
# GITHUB_ACCOUNT is the github name of the releaser
102+
# gh auth login
103+
# gh attestation verify DISTRO_FILE --owner GITHUB_ACCOUNT
104+
- name: Generate artifact attestation
105+
id: attestation
106+
uses: actions/attest-build-provenance@v1
107+
with:
108+
subject-path: ${{ env.ASSET_NAME }}
97109
- name: upload
98110
uses: softprops/action-gh-release@v1
99111
with:
100112
body_path: Changes-latest
101113
draft: false
102114
prerelease: false
103115
name: ${{ steps.version.outputs.name }}
104-
files: "*.tar.gz"
116+
files: |
117+
${{ env.ASSET_NAME }}
118+
${{ steps.attestation.outputs.bundle-path }}
105119
token: ${{ secrets.RELEASE_ACTION_TOKEN }}

0 commit comments

Comments
 (0)