Skip to content

[codex] Ensure PGP public key is available before Central release#13

Merged
wk1995 merged 1 commit into
pre_publishfrom
codex/fix-central-pgp-key
Jul 6, 2026
Merged

[codex] Ensure PGP public key is available before Central release#13
wk1995 merged 1 commit into
pre_publishfrom
codex/fix-central-pgp-key

Conversation

@wk1995

@wk1995 wk1995 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Root cause

The Publish Plugin Central workflow uploaded artifacts to Central staging successfully, but Central Portal deployment failed because Sonatype could not find the public PGP key for the signatures:

Invalid signature ... Could not find a public key by the key fingerprint.

Sonatype requires the signing public key to be distributed to a supported keyserver before Central can validate signed artifacts.

Summary

  • Add .github/scripts/ensure_pgp_public_key_available.py to import the CI signing key into a temporary GPG home, extract the primary fingerprint, publish the public key to keyserver.ubuntu.com, and verify it can be fetched from a separate keyring.
  • Run that script in publish-plugin-central.yml before publishing to Central staging.
  • Cover the script and workflow wiring with unit tests.

Validation

  • python3 -m unittest discover -s .github/scripts -p '*_test.py'
  • ./gradlew :plugin_base:build --stacktrace
  • ./gradlew :plugin_base:publishToMavenLocal --stacktrace
  • python3 .github/scripts/validate_publish_plugin_publications.py
  • ./gradlew :plugin_base:publishAllPublicationsToCentralStagingRepository -PcentralPublish=true --dry-run --stacktrace

@wk1995
wk1995 merged commit fee40c3 into pre_publish Jul 6, 2026
1 check passed
@wk1995
wk1995 deleted the codex/fix-central-pgp-key branch July 6, 2026 02:42
wk1995 added a commit that referenced this pull request Jul 22, 2026
[codex] Ensure PGP public key is available before Central release
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