Fix MCP Registry publish by using OIDC auth instead of interactive OAuth (#1857)

mcp-publisher login github uses the device flow (interactive OAuth) which
requires a human to visit a URL - this can never work in CI. Switch to
github-oidc which uses the OIDC token provided by GitHub Actions.
This commit is contained in:
Alon Girmonsky
2026-03-06 08:04:26 -08:00
committed by GitHub
parent e6a67cc3b7
commit a6daefc567

View File

@@ -168,7 +168,7 @@ jobs:
- name: Login to MCP Registry
if: github.event_name != 'workflow_dispatch' || github.event.inputs.dry_run != 'true'
shell: bash
run: mcp-publisher login github
run: mcp-publisher login github-oidc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}