Use self-hosted runners
Self-hosted runners offer more control of hardware, operating system, and software tools than GitHub-hosted runners can provide. For more information, see "About self-hosted runners." If you're using CodeQL with advanced setup, you can review the recommended hardware resources for running CodeQL to make sure your self-hosted runners meet those requirements. For more information, see "Recommended hardware resources for running CodeQL."