GeezerVison is showing github.com — feat: differentiate GitHub Actions environments in user-agent by reggi · Pull Request #9517 · npm/cli
Conversation
reggi
commented
Jun 9, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Updates the user-agent to specify github-actions runner.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
When running in GitHub Actions, derive a more specific ci/ user-agent
token from GITHUB_SERVER_URL and RUNNER_ENVIRONMENT so dotcom-hosted,
dotcom-selfhosted, dotcom, ghe.com, and GHES runners can be told apart.
Env vars are normalized to guard against absent/empty/whitespace values,
and an empty server URL keeps the existing generic ci/github-actions token.
Closes github/npm#15170
Co-authored-by: Copilot <[email protected]>
reggi
changed the title
feat(config): differentiate GitHub Actions environments in user-agent
feat: differentiate GitHub Actions environments in user-agent
Jun 9, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…name}
Keep the base ci/{ci-name} token and append a generic sub-category as
ci/{ci-name}/{sub-ci-name} when one is detected. Under GitHub Actions the
sub-category is derived from GITHUB_SERVER_URL (parsed via the URL
constructor so only the hostname is matched) and RUNNER_ENVIRONMENT:
dotcom-hosted, dotcom-selfhosted, dotcom, ghecom, or ghes. Env vars are
normalized to guard against absent/empty/whitespace values, and an
empty/unparseable server url keeps the plain ci/{ci-name} token.
Co-authored-by: Copilot <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|