Skip to content

Fix Central publish 401 in release workflow - #157

Merged
simbo1905 merged 1 commit into
mainfrom
fix-release-workflow-central-creds
Aug 30, 2026
Merged

Fix Central publish 401 in release workflow#157
simbo1905 merged 1 commit into
mainfrom
fix-release-workflow-central-creds

Conversation

@simbo1905

Copy link
Copy Markdown
Owner

Closes #156

Fixes the release workflow's Central publish: setup-java is now given
environment variable names (with values supplied via the step env
block) instead of secret values, so settings.xml gets real
credentials and the Sonatype Central upload no longer returns 401.
This has failed on every tag-driven release since 0.1.8; past releases
only reached Central via the manual local deploy.

Note for CI: the next release/2026.08.30 tag push (re-tagged after this
fix merges) is the verification run — release job must complete
including "Build and Deploy to Central".

actions/setup-java's server-username/server-password/gpg-passphrase
inputs take environment variable NAMES, not secret values. Passing the
values directly left settings.xml with empty credentials, so the
Sonatype Central upload failed with 401 on every release tag since
0.1.8. Provide the values via the step env block and reference the
names instead.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-30T17:37:20.398507Z 26a4183 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@simbo1905
simbo1905 merged commit 24f7df3 into main Aug 30, 2026
7 checks passed
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.

Central publish fails with 401: setup-java given secret values instead of environment variable names

1 participant