You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
submit_pull_request_review lacks target-repo support and fails in cross-repo workflows #20664
Problem
In cross-repository review flows, submit_pull_request_review appears to resolve the repository from the provider workflow context instead of the consumer repository. This causes PR review submission to hit the wrong repo and fail with 404.
Observed behavior
Request was sent to:
POST /repos/provider-org/provider-repo/pulls/1/reviews
Failure:
Failed to submit PR review: Not Found
Expected behavior
submit_pull_request_review should support an optional target-repo parameter (same pattern already used by add_comment and create_pull_request_review_comment).
If target-repo is provided: use it for repo resolution.
If omitted: fallback to github.repository for backward compatibility.
Why this is a bug in cross-repo scenarios
In the same run, safe output config already supports target-repo for:
add_comment
create_pull_request_review_comment
But submit_pull_request_review currently receives only target (PR number), so review submission is routed to the provider repo instead of the consumer repo.
Activity
Fix: Add target-repo and allowed-repos to submit-pull-request-review …