GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: differentiate GitHub Actions environments in user-agent by reggi · Pull Request #9517 · npm/cli

Conversation

@reggi

@reggi reggi commented Jun 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@reggi
feat(config): differentiate GitHub Actions environments in user-agent
52d6a6c
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
reggi requested review from a team as code owners June 9, 2026 15:08
@reggi reggi changed the title feat(config): differentiate GitHub Actions environments in user-agent feat: differentiate GitHub Actions environments in user-agent Jun 9, 2026
owlstronaut
owlstronaut previously approved these changes Jun 9, 2026
View reviewed changes
nishantms
nishantms reviewed Jun 9, 2026
View reviewed changes
Comment thread workspaces/config/lib/definitions/definitions.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

nishantms
nishantms reviewed Jun 9, 2026
View reviewed changes
Comment thread workspaces/config/test/definitions/definitions.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

nishantms
nishantms reviewed Jun 9, 2026
View reviewed changes
Comment thread workspaces/config/lib/definitions/definitions.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

nishantms
nishantms reviewed Jun 9, 2026
View reviewed changes
Comment thread workspaces/config/lib/definitions/definitions.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@reggi
refactor(config): emit GitHub Actions sub-ci as ci/{ci-name}/{sub-ci-…
563b5d1
…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]>
@reggi
reggi dismissed owlstronaut’s stale review via 563b5d1 June 9, 2026 21:23
nishantms
nishantms approved these changes Jun 10, 2026
View reviewed changes
@reggi
reggi merged commit f6a9aad into latest Jun 10, 2026
16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@reggi
reggi deleted the reggi/ci-user-agent-github-actions branch June 10, 2026 15:18
@github-actions github-actions Bot mentioned this pull request Jun 10, 2026
chore: release 12.0.0-pre.1 #9387
Merged
@reggi reggi mentioned this pull request Jun 11, 2026
feat: differentiate GitHub Actions environments in user-agent (#9517) #9539
Merged
owlstronaut pushed a commit that referenced this pull request Jun 11, 2026
@reggi Michael Smith
feat: differentiate GitHub Actions environments in user-agent (#9517)
5f73e31
Updates the `user-agent` to specify github-actions runner.

---------

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot mentioned this pull request Jun 11, 2026
chore: release 11.17.0 #9427
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@nishantms nishantms nishantms approved these changes
+1 more reviewer
@owlstronaut owlstronaut owlstronaut left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

3 participants

@reggi @owlstronaut @nishantms
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.