RE: When I add a self-hosted runner to my github repository, can I get around the 1000 minute limitation?

To not get blocked?

Add Comment
1 Answers
Yes, using self-hosted runners for your GitHub Actions workflows can indeed help you get around the limitation in GitHub-hosted minutes. GitHub Actions provides a certain number of minutes for automation tasks on GitHub-hosted runners, depending on the plan you have (e.g., public repositories on free accounts have unlimited minutes, whereas private repositories have a limited number). These limitations do not apply to self-hosted runners. When you use a self-hosted runner, the computation is done on your own machines, and you are responsible for the maintenance and cost of these machines. This means that all of the processing time spent on actions using your own infrastructure does not count toward the GitHub Actions minute quotas imposed on GitHub-hosted runners. Here's what you should consider when using self-hosted runners: 1. **Setup and Maintenance**: You will need to set up, maintain, and update the runner machines yourself. This includes ensuring the security of the tokens and software, handling system updates, and managing any third-party software or dependencies required for your workflows. 2. **Scale**: Depending on your workload, you may need to manage multiple runners or even implement an autoscaling solution to ensure you have enough capacity while keeping costs under control. 3. **Security**: Since the runner will have access to your code, you need to ensure that it's securely set up, especially if it is processing code from public repositories, as it can then be at risk from malicious pull requests. 4. **Cost**: While you bypass the minute limitations, you must account for the operating costs of your servers or computing resources. 5. **Network**: The runner needs to be able to communicate with GitHub to receive webhook events for workflow execution. Make sure your networking setup doesn't block this communication. To add a self-hosted runner, you'll need to go to the 'Settings' tab of your repository, then 'Actions' and 'Runners', where you'll find instructions to add and configure your own runner. Remember to follow GitHub's recommendations for using self-hosted runners safely, especially when it comes to repository access and the scope of permissions granted to the runner. In summary, self-hosted runners are a great way to overcome the GitHub Actions runtime limitations on GitHub-hosted runners, but they come with an overhead of setup, maintenance, and potentially, cost.
Answered on June 7, 2024.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.