"Re-run all jobs" button does not generate worklow_run.requested event.
See original GitHub issueDescribe the bug
When someone clicks the “re-run all jobs” button on a github action workflow, the workflow_run.requested
event is not triggered.
This is an issue for us because we have created a custom github app that will cancel workflow_runs if the last person to edit the workflow file is not an admin on the repo. We are doing this because github has not provided a solution for our security concern outlined in the following issues:
https://github.com/actions/runner/issues/458 https://github.com/actions/runner/issues/494
My solution works great, except that when a workflow is cancelled any user can go re-run the cancelled workflow and we are not able to intercept that run and cancel it because the “re-run all jobs” button does not seem to trigger any events.
To Reproduce Steps to reproduce the behavior:
- Subscribe to workflow_run events.
- Run a workflow and you will see workflow_run:requested and then workflow_run:complete events.
- Now click the “Re-run all jobs” button
- You will see no events triggered.
Expected behavior
I would expect the “re-run all jobs” button to trigger the workflow_run:requested
event:action since it is actually doing that. Or at least another comparable event:action should be triggered.
Runner Version and Platform
- Github hosted runners is where this has been tested. It looks like it does the same on all though.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:15
Top GitHub Comments
All,
I used to have a ‘Re-run all jobs’ button in my GitHub runner, but it seems to have disappeared. I would appreciate any help in finding out how to get this button back.
Awesome! Thank you for sharing.