-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Runner Register GitHub API URL to Support Org-level Runner #339
Conversation
var gitHubUrl = new UriBuilder(githubUrl); | ||
var githubApiUrl = $"https://api.{gitHubUrl.Host}/repos/{gitHubUrl.Path.Trim('/')}/actions-runners/registration"; | ||
var gitHubUrlBuilder = new UriBuilder(githubUrl); | ||
var githubApiUrl = $"https://api.{gitHubUrlBuilder.Host}/actions/register-runner"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this new api ready for production usage?
if not, then you probably want to keep the GetTenantCredential()
as it is and add a new method, like: GetTenantCredentialPreview()
, and flip between these 2 bases on some env variable (GITHUB_NEW_REGISTERENDPOINT=true) to test the new endpoint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll be in production tomorrow. I just created this little early, so that you can have a look. Will merge it once the api is in production.
…tions#339) * Update GitHub API URL * pr comments * Updated GitHub API URL
Draft PR
Updated GitHub API request as per this -> https://github.com/github/c2c-actions-runtime/issues/373#issuecomment-588394924
Sample request