workflow_run runs in the context of the default branch, therefore when constructing URLs, it is incorrectly using the commit SHA from the default branch instead of from the pull request.
It should instead use the SHA from workflow_run on the payload.
workflow_run
runs in the context of the default branch, therefore when constructing URLs, it is incorrectly using the commit SHA from the default branch instead of from the pull request.It should instead use the SHA from
workflow_run
on the payload.https://docs.github.com/en/webhooks/webhook-events-and-payloads#workflow_run