Skip to content

Update the release signer and scope the release token - #702

Open
ievav100 wants to merge 3 commits into
google:mainfrom
ievav100:codex/scope-release-token
Open

ievav100 wants to merge 3 commits into
google:mainfrom
ievav100:codex/scope-release-token

Conversation

@ievav100

@ievav100 ievav100 commented Nov 25, 2026 •

Copy link
Copy Markdown

Summary

In a GitHub-hosted fork test, the existing Sigstore action failed to install its pinned dependencies on the runner’s default Python 3.14. Selecting Python 3.12 fixed the install, then the old Sigstore client failed on the certificate timestamp returned by Fulcio staging. This change selects Python 3.12 and pins the official Sigstore action revision that bundles sigstore-python 4.5.1. Dependency failure Signing failure Sigstore compatibility fix

The GitHub CLI already targets the repository explicitly, so the job can download and sign its archives in an empty workspace. Removing the checkout eliminates the Git credential it would persist. The GH_TOKEN environment variable is supplied only to the two steps that use the GitHub CLI.

Validation

  • Actionlint 1.7.12 and git diff --check passed.

  • A local command fixture checked the create, download, and upload arguments and archive filenames from an empty workspace.

  • A GitHub-hosted fork run downloaded the public tarball and ZIP without a checkout, then signed both synthetic archive types in Sigstore staging and verified both signatures. It used the exact Python setup and Sigstore action revision in this PR. Passing hosted run

  • With production Sigstore selected, a separate hosted fork run signed and verified both synthetic archive formats against the fork workflow identity and the GitHub Actions OIDC issuer. It used Python 3.12 and the same pinned signing action, and checked that the release token was absent before and after signing. Passing production signing check

  • A hosted fork test created a draft release for the exact PR commit, fetched its tagged tarball and ZIP through GitHub’s archive API, signed both with production Sigstore, and uploaded the archives and both signature bundles. Both signatures verified against the fork workflow identity, all four assets matched GitHub’s SHA-256 digests, and the release token was absent from the environment before and after signing. The test used the archive API because GitHub CLI release archive downloads require a published release. The fork release stayed a draft. Passing draft release job Test workflow

  • The five newest published upstream releases all have signature bundles for both archives. The compatibility failures above were reproduced in the fork. RE2 release history

Prepared and tested with OpenAI Codex.

Keep the release token in the steps that call the GitHub CLI. Avoid checking out the source when the release workflow only downloads and signs archives.
The existing Sigstore dependency setup fails under the hosted runner default Python 3.14. Select Python 3.12 before invoking the signer.
Pin the official Sigstore action revision that bundles sigstore-python 4.5.1 after staging verified that the old client cannot handle the current certificate timestamp format.
@ievav100 ievav100 changed the title Restore release signing and scope the release token Update the release signer and scope the release token Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant