Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 0a910e0

Browse files
authored
chore(ci): Add provenance file (#1371)
Add provenance file for releases. SLSA level 1
1 parent ae84302 commit 0a910e0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: .github/workflows/release.yml

+18
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
retention-days: 1
3434

3535
release:
36+
name: release
3637
runs-on: ubuntu-latest
3738
needs:
3839
prepare
@@ -80,4 +81,21 @@ jobs:
8081
cp .release/* .
8182
yarn
8283
yarn release --repositoryUrl https://x-access-token:[email protected]/$GITHUB_REPOSITORY.git
84+
85+
provenance:
86+
name: Generate provenance
87+
runs-on: ubuntu-20.04
88+
needs:
89+
release
90+
if: startsWith(github.ref, 'refs/tags/')
91+
92+
steps:
93+
- name: Generate provenance for release
94+
uses: philips-labs/[email protected]
95+
with:
96+
artifact_path: release-assets
97+
output_path: 'build.provenance'
98+
tag_name: "${{ github.ref_name }}"
99+
env:
100+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
83101

0 commit comments

Comments
 (0)