feat: Add support to authentication via GitHub Apps#70
Merged
Conversation
gunzip
reviewed
Feb 13, 2026
There was a problem hiding this comment.
Pull request overview
Adds support for authenticating and registering a GitHub Actions self-hosted runner using a GitHub App (JWT → installation access token) as an alternative to the legacy token flow and PAT-based registration.
Changes:
- Switches PAT-based registration into an
elif [ -n "$GITHUB_PAT" ]branch. - Adds a new GitHub App authentication flow that generates a JWT, exchanges it for an installation access token, and then requests a runner registration token.
Comments suppressed due to low confidence (1)
github-runner-entrypoint.sh:78
- In the PAT branch, the script assumes
REGISTRATION_TOKEN_API_URLandREPO_URLare set, but they are not derived anywhere in this script. Add explicit checks (and a clear error message) before callingcurl/config.shso misconfiguration fails fast instead of producing hard-to-debug API/config errors.
elif [ -n "$GITHUB_PAT" ]; then
# Retrieve a short lived runner registration token using the PAT
REGISTRATION_TOKEN="$(curl -X POST -fsSL \
-H 'Accept: application/vnd.github.v3+json' \
-H "Authorization: Bearer $GITHUB_PAT" \
-H 'X-GitHub-Api-Version: 2022-11-28' \
"$REGISTRATION_TOKEN_API_URL" \
| jq -r '.token')"
#<https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners>
./config.sh \
--url "${REPO_URL}" \
--token "${REGISTRATION_TOKEN}" \
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
deb9e25 to
65795a6
Compare
65795a6 to
e1e1e13
Compare
christian-calabrese
approved these changes
Feb 13, 2026
Contributor
|
🎉 This PR is included in version 3.10.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds logic to perform authentication using a GitHub App rather the PAT token (more secure and scalable approach)
Resolves CES-1021