You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Third-party extensions have names that can be user-authored identifiers
(organization names, project names, etc.), so historically all extension
commands have had telemetry disabled via cmdutil.DisableTelemetry. This
change allows GitHub-owned 'official' extensions (listed in a hard-coded
OfficialExtensions registry) to report telemetry, because their command
names come from that fixed registry and cannot contain sensitive user
identifiers.
Only the extension name is checked: cmdutil.RecordTelemetry records
cmd.CommandPath() and parsed flag names. Extension commands set
DisableFlagParsing, so no flags are ever recorded, and the command name
is always either a stub name registered directly from the registry or
the filename of an installed gh-<name> binary. Owner and host therefore
never reach telemetry and are not part of the gate.
Comparison is case-insensitive because extension names are derived from
filenames and preserve install-time casing.
Co-authored-by: Copilot <[email protected]>
0 commit comments