Skip to content

fix: replace repository-dispatch with direct API call#30060

Merged
OGPoyraz merged 1 commit into
mainfrom
fix/triage-forwarder-dispatch
May 14, 2026
Merged

fix: replace repository-dispatch with direct API call#30060
OGPoyraz merged 1 commit into
mainfrom
fix/triage-forwarder-dispatch

Conversation

@OGPoyraz

@OGPoyraz OGPoyraz commented May 12, 2026

Copy link
Copy Markdown
Member

Description

The peter-evans/repository-dispatch@v3 action is not on the MetaMask org's GitHub Actions allowlist, causing the triage forwarder workflow to fail.

Fix

Replace the third-party action with a direct curl call to the GitHub REST API (POST /repos/{owner}/{repo}/dispatches). This is consistent with how metamask-extension does cross-repo dispatch in main.yml.

Changes

  • Remove peter-evans/repository-dispatch@v3 usage
  • Replace with curl to https://api.github.com/repos/MetaMask/triage-agent/dispatches
  • Payload is constructed via jq to match the existing triage-issue event contract

CHANGELOG entry: null

Pre-merge author checklist


Note

Medium Risk
Changes the triage-forwarder GitHub Actions workflow dispatch mechanism; a malformed request or auth header could break cross-repo triage dispatching, but scope is limited to automation.

Overview
Replaces the peter-evans/repository-dispatch@v3 step in .github/workflows/triage-forwarder.yml with a direct curl call to POST /repos/MetaMask/triage-agent/dispatches using the exchanged installation token.

The dispatch payload is now constructed via jq and sent as event_type: "triage-issue" with the same client_payload fields as before.

Reviewed by Cursor Bugbot for commit 43c8909. Bugbot is set up for automated code reviews on this repo. Configure here.

@OGPoyraz OGPoyraz requested a review from a team as a code owner May 12, 2026 19:44
@metamaskbotv2 metamaskbotv2 Bot added the team-confirmations Push issues to confirmations team label May 12, 2026
@OGPoyraz OGPoyraz changed the title fix: replace peter-evans/repository-dispatch with direct API call fix: replace repository-dispatch with direct API call May 12, 2026
@metamaskbotv2 metamaskbotv2 Bot added the INVALID-PR-TEMPLATE PR's body doesn't match template label May 12, 2026
@sonarqubecloud

Copy link
Copy Markdown

@OGPoyraz OGPoyraz enabled auto-merge May 13, 2026 09:09
@OGPoyraz OGPoyraz added this pull request to the merge queue May 14, 2026
Merged via the queue into main with commit fc488ec May 14, 2026
87 of 89 checks passed
@OGPoyraz OGPoyraz deleted the fix/triage-forwarder-dispatch branch May 14, 2026 17:34
@github-actions github-actions Bot locked and limited conversation to collaborators May 14, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-7.78.0 Issue or pull request that will be included in release 7.78.0 label May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template release-7.78.0 Issue or pull request that will be included in release 7.78.0 size-S team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants