Skip to content

fix: restore repository_dispatch with DISPATCH_TOKEN for cross-repo triggers#217

Merged
ppenna merged 1 commit intonanvix/v3.12.3from
fix/restore-repository-dispatch
Feb 26, 2026
Merged

fix: restore repository_dispatch with DISPATCH_TOKEN for cross-repo triggers#217
ppenna merged 1 commit intonanvix/v3.12.3from
fix/restore-repository-dispatch

Conversation

@ppenna
Copy link

@ppenna ppenna commented Feb 26, 2026

Problem

Cross-repo workflow dispatching fails with HTTP 403 because GITHUB_TOKEN is scoped only to the current repository.

PR #213 changed the dispatch token from DISPATCH_TOKEN (a PAT with org-wide scope) to GITHUB_TOKEN, and PR #216 attempted workflow_dispatch API instead — both fail cross-repo.

Fix

  • Reverts to repository_dispatch API (POST /repos/{owner}/{repo}/dispatches)
  • Uses DISPATCH_TOKEN secret (PAT with org-wide repo access)
  • Restores nanvix-python in the unified dispatch loop with cpython_tag and nanvix_sha in client_payload

Reverts #216 and partially reverts #213 (only the dispatch step token).

…riggers

Reverts PR #216 (workflow_dispatch) and PR #213 (GITHUB_TOKEN) changes.
GITHUB_TOKEN is scoped to the current repo and cannot dispatch events
to other repositories (HTTP 403). DISPATCH_TOKEN is a PAT with org-wide
repo access that enables cross-repo repository_dispatch events.

Also restores nanvix-python in the unified dispatch loop with
cpython_tag and nanvix_sha in client_payload.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ppenna ppenna merged commit 16a74ae into nanvix/v3.12.3 Feb 26, 2026
7 checks passed
@ppenna ppenna deleted the fix/restore-repository-dispatch branch February 26, 2026 07:32
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