mirror of
https://github.com/openai/codex.git
synced 2026-09-16 12:13:30 +00:00
Add cosign signing for Linux release artifacts
This commit is contained in:
32
.github/workflows/rust-release.yml
vendored
32
.github/workflows/rust-release.yml
vendored
@@ -327,6 +327,38 @@ jobs:
|
||||
zstd -T0 -19 --rm "$dest/$base"
|
||||
done
|
||||
|
||||
- if: ${{ contains(matrix.target, 'unknown-linux') }}
|
||||
name: Install cosign
|
||||
uses: sigstore/cosign-installer@v3.6.0
|
||||
|
||||
- if: ${{ contains(matrix.target, 'unknown-linux') }}
|
||||
name: Sign Linux artifacts
|
||||
shell: bash
|
||||
env:
|
||||
COSIGN_EXPERIMENTAL: "1"
|
||||
COSIGN_YES: "true"
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
dest="dist/${{ matrix.target }}"
|
||||
shopt -s nullglob
|
||||
|
||||
for artifact in "$dest"/*; do
|
||||
[[ -f "$artifact" ]] || continue
|
||||
|
||||
case "$artifact" in
|
||||
*.sig|*.pem)
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
|
||||
cosign sign-blob \
|
||||
--yes \
|
||||
--output-signature "${artifact}.sig" \
|
||||
--output-certificate "${artifact}.pem" \
|
||||
"$artifact"
|
||||
done
|
||||
|
||||
- name: Remove signing keychain
|
||||
if: ${{ always() && matrix.runner == 'macos-15-xlarge' }}
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user