Skip to content

SITES-49657 - Fix Maven Central credential wiring in the release workflow - #1088

Closed
LSantha wants to merge 1 commit into
masterfrom
SITES-49657
Closed

SITES-49657 - Fix Maven Central credential wiring in the release workflow#1088
LSantha wants to merge 1 commit into
masterfrom
SITES-49657

Conversation

@LSantha

@LSantha LSantha commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Problem

.github/scripts/settings.xml authenticates the Sonatype Central Portal central server with ${env.MAVEN_CENTRAL_USERNAME} / ${env.MAVEN_CENTRAL_PASSWORD}, but the release job never mapped those two secrets into its env: block. Maven does not fail on an unresolvable ${env.…} — it keeps the literal text, so the placeholder string itself was sent as the user token and central-publishing-maven-plugin failed with HTTP 401 Unauthorized on core-cif-components-reactor. That aborted the 2.18.6 deploy before any Maven artifact reached Central.

Change

  • map MAVEN_CENTRAL_USERNAME and MAVEN_CENTRAL_PASSWORD into the env: of the release job's Release step
  • list both in the workflow header's required-secrets block

Both secrets already exist in the repository; only the mapping was missing. Nothing outside the tag-triggered release workflow changes.

Testing

Not exercisable from a PR — the workflow only triggers on a release tag. Verified by inspection that the two variable names match the ${env.…} references in .github/scripts/settings.xml, and that the Release step's env: block now carries all six variables that step needs. The change is exercised on the next release tag.

Not covered

The deploy-queries job fails for a separate reason: the DEPLOY_QUERIES_SSH_KEY secret does not exist in the repository. It needs a deploy key with push access to adobe/commerce-cif-graphql-integration-reference, created by a repo admin — it cannot be fixed in YAML.

SITES-49657

@LSantha LSantha changed the title SITES-49657 - Fix Maven Central credential wiring and make npm publish skippable in the release workflow SITES-49657 - Fix Maven Central credential wiring in the release workflow Aug 11, 2026
 * map MAVEN_CENTRAL_USERNAME / MAVEN_CENTRAL_PASSWORD into the release job env, so the
   settings.xml placeholders for the Sonatype Central Portal server resolve instead of
   being sent literally, which made the central-publishing plugin fail with HTTP 401
 * document the two secrets in the workflow header
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