Skip to content

Commit c12da5d

Browse files
committed
feat: linux codesign with sigstore
WIP WIP: updating windows code signing process with OIDC only keeping build and codesigning for local testing linx signing only Update to use the correct path
1 parent 315b1e9 commit c12da5d

File tree

2 files changed

+457
-389
lines changed

2 files changed

+457
-389
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: linux-code-sign
2+
description: Sign Linux artifacts with cosign.
3+
inputs:
4+
target:
5+
description: Target triple for the artifacts to sign.
6+
required: true
7+
artifacts-dir:
8+
description: Absolute path to the directory containing built binaries to sign.
9+
required: true
10+
11+
runs:
12+
using: composite
13+
steps:
14+
- name: Install cosign
15+
uses: sigstore/cosign-installer@v3.7.0
16+
17+
- name: Cosign Linux artifacts
18+
shell: bash
19+
env:
20+
COSIGN_EXPERIMENTAL: "1"
21+
COSIGN_YES: "true"
22+
COSIGN_OIDC_CLIENT_ID: "sigstore"
23+
COSIGN_OIDC_ISSUER: "https://oauth2.sigstore.dev/auth"
24+
run: |
25+
set -euo pipefail
26+
27+
dest="${{ inputs.artifacts-dir }}"
28+
if [[ ! -d "$dest" ]]; then
29+
echo "Destination $dest does not exist"
30+
exit 1
31+
fi
32+
33+
for binary in codex codex-responses-api-proxy; do
34+
artifact="${dest}/${binary}"
35+
if [[ ! -f "$artifact" ]]; then
36+
echo "Binary $artifact not found"
37+
exit 1
38+
fi
39+
40+
cosign sign-blob \
41+
--yes \
42+
--bundle "${artifact}.sigstore" \
43+
"$artifact"
44+
done

0 commit comments

Comments
 (0)