Is there a way to disable GitHub-hosted runners in GitHub Actions?

Viewed 482

Due to security reasons, we need to explicitly disable GitHub-hosted runners, ideally for the entire organization. Any clues on how to do it?

2 Answers

I had the same worry. I came up with an idea (not in practice) that is a bit of a pain...

for anything in .github/workflows/*.yaml, check the yaml to make sure self-hosted is in there; if not, refuse the merge/commit.

Related