Github workflow: PHP backport changes action doesn't work in case of forked repository #59441
Labels
GitHub Actions
Pull requests that update GitHub Actions code
[Type] Bug
An existing feature does not function as intended
Description
My understanding is that if a PR contains a file contained in a particular directory, or a PHP file, GitHub Actions will be triggered and a comment will be added to prompt a backport to core. However, this GitHub Actions doesn't seem to work correctly when the PR is sent from a forked repository.
Below is examples:
It seems that creating comments is failing.
Another strange thing is that there was a PR where this GitHub Action was executed even though no changes were made to the PHP file:
https://github.com/WordPress/gutenberg/actions/runs/8057484383
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: