Skip to content

Commit c8013a2

Browse files
committed
sec(cd): attest release provenance
1 parent 564b970 commit c8013a2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/cd.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555

5656
permissions:
5757
contents: write
58+
id-token: write
59+
attestations: write
5860
actions: read
5961

6062
env:
@@ -90,6 +92,11 @@ jobs:
9092
tar -czvf blog-${{ env.RELEASE_VERSION }}.tar.gz -C dist .
9193
shasum -a 512 blog-${{ env.RELEASE_VERSION }}.tar.gz > blog-${{ env.RELEASE_VERSION }}.tar.gz.sha512
9294
95+
- name: Attest release provenance
96+
uses: actions/attest-build-provenance@v2
97+
with:
98+
subject-path: '${{ github.workspace }}/blog-${{ env.RELEASE_VERSION }}.tar.gz'
99+
93100
- name: 🔖 Create Git Tag
94101
run: |
95102
git config user.name "radagastbot[bot]"

0 commit comments

Comments
 (0)