question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Re-run all jobs" button does not generate worklow_run.requested event.

See original GitHub issue

Describe 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:

  1. Subscribe to workflow_run events.
  2. Run a workflow and you will see workflow_run:requested and then workflow_run:complete events.
  3. Now click the “Re-run all jobs” button
  4. 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15

github_iconTop GitHub Comments

1reaction
thapaasheshcommented, Mar 30, 2023

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.

1reaction
eladchencommented, Oct 12, 2020

Awesome! Thank you for sharing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I re-run Github Actions?
This will add an empty commit (no files changed), and will trigger another push event on GitHub, and therefore trigger another workflow run....
Read more >
Save time with partial re-runs in GitHub Actions
Save time with partial re-runs in GitHub Actions. It is now possible to re-run only failed jobs or a single job in GitHub...
Read more >
Using Workflows to Orchestrate Jobs
Learn about using CircleCI workflows to orchestrate jobs. ... The deploy job will not run until the build and test1 and test2 jobs...
Read more >
7 Github Actions Tricks I Wish I Knew Before I Started
Here are 7 tricks with github actions that changed my life (or at least my CI/CD pipeline). These tricks helped me create a...
Read more >
Rerun job from the job detail page | Cloud Feature Requests
But to rerun the failed job without SSH, I need to go to the workflow tag and then find "rerun failed jobs". I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found