In our workflow, we have an action that will push some modifications to a PR. As it is triggered with the default Github token, and not a personal access token, it is expected not to triggered the action again. All good here.
The issue is that we have a branch protection that makes the check required before merging. After the automated push, the PR still expects the check to pass, even though it is not triggered.
Is there a way to make the check not mandatory in the case the push is done via an action?
Here is a dummy repo that reproduce the issue: GitHub - loic-h/example-pending-github-status-check: Example of a failing workflow where a mandatory status check is waiting for an action that is never triggered.
So far, our only solution is authenticating with a PAT and having the actions run again, but it means for us running our checks twice basically, as the code pushed by the action is not concerned by the checks.
Thanks for your time and consideration!