Skip to content

fix(ci): use https for scm developerConnection#2832

Merged
willosborne merged 1 commit into
finos:mainfrom
willosborne:fix/release-scm-developer-connection
Jul 16, 2026
Merged

fix(ci): use https for scm developerConnection#2832
willosborne merged 1 commit into
finos:mainfrom
willosborne:fix/release-scm-developer-connection

Conversation

@willosborne

Copy link
Copy Markdown
Member

Description

The "Release and publish CALM models to Maven Central" workflow fails during release:prepare (prepare:scm-commit-release) with Permission denied (publickey). See failing run: https://github.com/finos/architecture-as-code/actions/runs/29491469083/job/87598351650

Root cause: maven-release-plugin pushes over the <scm><developerConnection> URL, which was scm:git:ssh://github.com/finos/architecture-as-code.git. The release workflow only authenticates git operations over HTTPS (checkout with GITHUB_TOKEN plus a git config url."https://x-access-token:...@github.com/".insteadOf "https://github.com/" rewrite) — it never sets up an SSH key, so the SSH push fails.

Fix: change developerConnection to use HTTPS too, so it's covered by the same token-based insteadOf rewrite the workflow already sets up.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)

Affected Components

  • CI/CD

Testing

  • I have tested my changes locally (confirmed the maven-javadoc-plugin version fixed in a prior PR resolves cleanly; this change targets the earlier release:prepare push failure, one line, well-understood cause)
  • I have added/updated unit tests (not applicable — pom.xml SCM config)
  • All existing tests pass (not applicable — pom.xml SCM config)

Checklist

  • My commits follow the conventional commit format
  • I have updated documentation if necessary (not applicable)
  • I have added tests for my changes (not applicable)
  • My changes follow the project's coding standards

The maven-release-plugin pushes over the developerConnection URL, which
was ssh://github.com/..., but the release workflow only authenticates
git operations over HTTPS (via GITHUB_TOKEN url.insteadOf rewrite) and
there's no SSH key on the runner. This caused release:prepare to fail
at prepare:scm-commit-release with "Permission denied (publickey)".
@willosborne
willosborne requested a review from a team as a code owner July 16, 2026 10:43
@willosborne
willosborne merged commit 773bf27 into finos:main Jul 16, 2026
17 checks passed
@willosborne
willosborne deleted the fix/release-scm-developer-connection branch July 16, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants