Skip to content

ci: predict-conflicts fails on pull_request_review for fork PRs with 'Resource not accessible by integration' #7268

@thepastaclaw

Description

@thepastaclaw

Summary

Check Potential Conflicts can fail on fork PRs when triggered by pull_request_review, even when the same head SHA already passed on pull_request_target and there are no predicted conflicts.

Example

PR: #7237
Head SHA: 84534b24709ccf165ab81525c4de58913d80d39f

Successful run on PR event:

Failing run on review event for the same SHA:

Root cause

This looks like a workflow permission/event mismatch, not a branch-specific code problem:

  • PR backport: Bitcoin Core v0.26 backports (batch 1) #7237 is a cross-repository PR (thepastaclaw/dash -> dashpay/dash)
  • .github/workflows/predict-conflicts.yml runs on both pull_request_target and pull_request_review
  • On pull_request_review, the mshick/add-pr-comment@v2 step that updates the sticky comment can fail with Resource not accessible by integration
  • The same workflow and same head SHA succeed on pull_request_target, so this is not caused by the PR contents

Reproduction

  1. Open a cross-repo PR against dashpay/dash
  2. Ensure Check Potential Conflicts reports no conflicts on the normal PR-triggered run
  3. Submit a PR review
  4. Observe the pull_request_review-triggered Check Potential Conflicts run fail in Remove conflict comment if no conflicts

Possible fixes

  • Stop running this workflow on pull_request_review
  • Or guard the comment-update steps so review-triggered runs don't fail the check when GitHub denies comment writes
  • Or switch the review-triggered path to continue-on-error: true / permission-aware logic around mshick/add-pr-comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions