Skip to content

Build and check the signed Central bundle on every PR - #197

Merged
mpge merged 1 commit into
mainfrom
ci/central-bundle-dry-run
Nov 27, 2026
Merged

mpge merged 1 commit into
mainfrom
ci/central-bundle-dry-run

Conversation

@mpge

@mpge mpge commented Nov 27, 2026

Copy link
Copy Markdown
Member

The signed Maven Central bundle was only ever built inside publish.yml, with the real key. A broken bundle (missing signature, missing javadoc jar, stray maven-metadata.xml) would first show up on a release, as a rejected upload. Install-readiness audit, 2026-11-27.

New .github/workflows/central-bundle.yml runs on PRs and pushes to main:

  1. Creates a throwaway, passphrase-less GPG key in the runner's temp dir. It expires after 1 day and is never uploaded.
  2. Runs ./gradlew centralBundle with it, the same task publish.yml uses.
  3. Unzips the bundle and checks:
    • the pom, jar, -sources.jar and -javadoc.jar exist;
    • every file has .asc, .md5 and .sha1;
    • every signature verifies with gpg --verify;
    • every sha1 matches;
    • there is no maven-metadata.xml.

Nothing is uploaded and no secrets are used.

The bundle was only ever built inside publish.yml with the real key, so a
broken bundle would first show up on a release. This builds it with a
throwaway GPG key and checks that every file has a signature, an md5 and a
sha1, that sources and javadoc jars are present, that signatures verify and
sha1s match, and that no maven-metadata.xml slipped in.
@mpge
mpge merged commit 46f50b2 into main Nov 27, 2026
5 checks passed
@mpge
mpge deleted the ci/central-bundle-dry-run branch November 27, 2026 20:27
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