Skip to content

Commit 24e4287

Browse files
committed
[CI] Use cosign to sign release binaries
1 parent f7db283 commit 24e4287

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/sycl-rel-nightly.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,9 @@ jobs:
180180

181181
sycl_windows_artifact: sycl_windows_release
182182
sycl_windows_archive: ${{ needs.build-win.outputs.artifact_archive_name }}
183+
184+
sign-release-builds:
185+
needs: [ubuntu2204_build, build-win]
186+
uses: ./.github/workflows/sycl-sign-release-builds.yml
187+
permissions:
188+
id-token: write
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Sign Release Artifacts
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
id-token: write
8+
9+
jobs:
10+
sign-artifact:
11+
runs-on: ubuntu-latest
12+
env:
13+
GH_TOKEN: ${{ github.token }}
14+
steps:
15+
- name: Download artifact
16+
run: |
17+
gh run download ${{ github.run_id }} -R ${{ github.repository }} -n sycl_linux_release
18+
gh run download ${{ github.run_id }} -R ${{ github.repository }} -n sycl_windows_release
19+
20+
- name: Sign with Sigstore
21+
uses: sigstore/[email protected]
22+
with:
23+
inputs: sycl_linux.tar.gz sycl_windows.tar.gz
24+
25+
- name: Upload signature
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: sigstore_signatures
29+
path: "*.sigstore.json"

0 commit comments

Comments
 (0)