Add a manually triggered snapshot publish - #3092
Merged
Merged
Conversation
Removing snapshot publishing from main also removed the only way to exercise the publishing credentials and the signing key without cutting a release, which is immutable on Central. This job publishes a snapshot on workflow_dispatch only, never on a push. It runs in the maven-central environment, so the environment's branch policy decides where it can be dispatched from, and it refuses to run if any published module's version is not a -SNAPSHOT. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
edgartwigg
approved these changes
Sep 18, 2026
Member
|
@nedtwigg Am I right to think that @edgartwigg is just another account of yours that was used for CODEOWNERS testing purposes in this case? :) |
Member
Author
|
With Codeowners, it is not possible to self-approve, so you need at least one other account. I keep the logins in separate systems, so it does add a tiny bit of security. |
Member
That makes sense, thanks for confirming, my fears are assuaged. 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #3089 and #3090.
#3090 removed snapshot publishing from
main, which also removed the only way to exercise thepublishing credentials and the signing key without cutting a release. Releases are immutable on
Central, so "try it and see" is not available there.
This adds a
release-snapshotworkflow that publishes a snapshot, onworkflow_dispatchonly. Apush to any branch still cannot publish anything.
maven-centralenvironment, so the environment's branch policy decides where it canbe dispatched from.
-SNAPSHOT, so it can never ship arelease by accident.
0xFA5C18CFB74EC7C6.Note on where it can run. The environment currently allows only
release, and that branch isstill at the pre-migration build, which has no
publishToMavenCentraltask. So dispatching therewill fail until a release happens — which is the thing this job is meant to de-risk. To use it
before the next release,
mainhas to be added to the environment's branch policy. That is adeliberate loosening, and it is worth being explicit about: what prevents a repeat of #3089 is that
nothing publishes automatically, nothing decodes a secret in CI, and the secrets are scoped to the
environment rather than the organization.
🤖 Generated with Claude Code