Skip to content

Conversation

@Baibhav168
Copy link

@Baibhav168 Baibhav168 commented Jun 18, 2025

#3915

Bug
API to register a new self-hosted-runner has been updated, and corresponding change in new runner registration is missing.
Earlier it used :
https://github.com/actions/runner/blob/main/scripts/create-latest-svc.sh#L132
export RUNNER_TOKEN=$(curl -s -X POST ${base_api_url}/${orgs_or_repos}/${runner_scope}/actions/runners/registration-token -H "accept: application/vnd.github.everest-preview+json" -H "authorization: token ${RUNNER_CFG_PAT}" | jq -r '.token')
to generate a token .
Corresponding Bug: #3915

However new API looks like this:
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${RUNNER_CFG_PAT}" -H "X-GitHub-Api-Version: 2022-11-28" https://${base_api_url}/${orgs_or_repos}/${runner_scope}/actions/runners/registration-token

To Fix
https://github.com/actions/runner/blob/main/scripts/create-latest-svc.sh#L132 needs to be updated with the new curl cmd

@Baibhav168
Copy link
Author

Corresponding Bug: #3915

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant