Skip to content

fix(ci): expose package publish token to release jobs#6

Merged
alexk-dev merged 1 commit intomainfrom
fix/release-workflow-package-auth
Mar 8, 2026
Merged

fix(ci): expose package publish token to release jobs#6
alexk-dev merged 1 commit intomainfrom
fix/release-workflow-package-auth

Conversation

@alexk-dev
Copy link
Owner

Summary

  • expose GITHUB_TOKEN and GH_TOKEN at the release job level for both automatic and manual release workflows
  • keep GitHub Packages publish and gh release creation on the same credentials model

Root cause

actions/setup-java generated Maven server credentials referencing GITHUB_TOKEN, but the manual Release Plugin workflow did not actually expose that env var in the Publish GitHub Package step. The release payload built successfully, but maven-deploy-plugin:deploy-file failed with 401 Unauthorized when publishing to maven.pkg.github.com.

What changed

  • add job-level GITHUB_TOKEN and GH_TOKEN to .github/workflows/release-plugin.yml
  • move the same token wiring to the release_main job level in .github/workflows/ci.yml for consistency

Verification

  • reproduced the failure on manual Release Plugin for golemcore/telegram
  • confirmed the build path reaches package publication and the failure is specifically auth-related (401 Unauthorized)
  • workflow diff only changes token exposure; no plugin code or release logic was changed

@alexk-dev alexk-dev merged commit 7cc1b15 into main Mar 8, 2026
4 checks passed
@alexk-dev alexk-dev deleted the fix/release-workflow-package-auth branch March 8, 2026 23:05
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