How do I disable GitHub Checks "Re-run" button?

Viewed 480

rerun example

I scoured everywhere in the docs. https://docs.github.com/en/rest/reference/checks#check-runs

At first, I thought it was the "actions" optional parameter in the UPDATE check API call. I thought it was some sort of default, so I added some dummy "Fix this" action. It added another button (NOT what I want).

So then I inspected the request that's made when I click the Re-run button, turns out, it is rerequest. https://github.com/w3-rre-test/ui-typescript-react/runs/4158592/rerequest

So then I looked everywhere for re-request, and i see it's a feature of Check Suite (but no way to turn that off).

It seems to call this endpoint: https://docs.github.com/en/rest/reference/checks#rerequest-a-check-suite

I don't want this feature, it's confusing my users. I also looked at this doc https://docs.github.com/en/github/administering-a-repository/managing-repository-settings/disabling-or-limiting-github-actions-for-a-repository#allowing-specific-actions-to-run, but I don't think it's the same "Action" api since i don't have the Actions tab in my org / repo.

2 Answers

Please you follow these below step..

1.On GitHub, navigate to the main page of the repository.

2.Under your repository name, click Settings.

3.In the left sidebar, click Actions.

4.Under Actions permissions, select an option.

5.Click Save.

Please try it 1.In the top right corner of GitHub Enterprise Server,

2.your profile photo, then click Your organizations.

3.Your organizations in the profile menu

4.Next to the organization, click Settings.

5.The settings button

6.In the left sidebar, click Actions.

7.Under Local and third-party Actions, select an option.

8.Enable, disable, or limit actions for this organization Click Save.

Related