We expected pull requests created by GitHub to trigger workflows such as "Test" and "Check commit messages".
🫠 Actual behavior
Those workflows weren't triggered. See sample PR.
This behavior is deliberate from GitHub to avoid infinite workflow triggers.
✔️ Possible solutions
There are several workarounds, but GitHub recommends using a PAT in the workflow. Because PATs are not fine-grained (per repository), we can avoid security concerns by creating a bot account just for this repository.
🙂 Expected behavior
We expected pull requests created by GitHub to trigger workflows such as "Test" and "Check commit messages".
🫠 Actual behavior
Those workflows weren't triggered. See sample PR. This behavior is deliberate from GitHub to avoid infinite workflow triggers.
✔️ Possible solutions
There are several workarounds, but GitHub recommends using a PAT in the workflow. Because PATs are not fine-grained (per repository), we can avoid security concerns by creating a bot account just for this repository.