Skip to content

[FEATURE]: Add privacy-preserving CLI usage telemetry #5426

Closed

Description

@arturcic

Understand how GitVersion's established CLI is used so maintainers can prioritize supported arguments and runtime environments for v7.0.

Add sampled usage telemetry with a published policy, clear first-run disclosure and straightforward opt-outs. Implementation: #5376.

Scope and acceptance criteria

  • Collect only allowlisted option-presence flags, installed GitVersion version without branch/SHA metadata, bounded caller/container/OS distribution and version labels, CI build-agent classification, and sampling probability.
  • Exclude raw arguments and values, paths, repository details, configuration values, calculated repository versions, persistent identities, and calculation outcomes or exit codes.
  • Support opt-out through --telemetry-opt-out, DO_NOT_TRACK=1, and GITVERSION_TELEMETRY_OPTOUT=1. Show the policy notice before sampling for direct invocations and before sending selected automated invocations.
  • Enable collection only in eligible official tagged release/prerelease builds with a valid public project key supplied through the GitHub Actions variable GITVERSION_TELEMETRY_PROJECT_KEY and an automatically embedded UTC build date. Ordinary PR, fork, local and untagged builds remain disabled. Do not hardcode a real key in source or accept runtime key overrides.
  • Limit each eligible assembly's campaign to three calendar months. Cap sampling at 1% for direct runs and 0.01% for automated runs; bound delivery to 300 ms and 1 second respectively, without retries or changes to CLI output or exit codes.
  • Use PostHog Cloud EU with client IP discard enabled, GeoIP paused and person processing disabled. Document public-key abuse limitations and provider processing transparently.
  • Document all collected fields, how invocation/runtime sources are distinguished, activation, opt-outs and sampling interpretation. Derive dashboard weights from sampling_probability rather than transmitting a separate weight.
  • Keep the legacy argument parser, experimental new-cli, and in-process MSBuild tasks outside collection scope. Identify supported out-of-process GitVersion.MsBuild CLI invocations through the documented caller marker.
  • Cover eligibility, privacy boundaries, disclosure, sampling, delivery failures and CLI output/exit-code preservation with isolated tests.

Target release: v7.0 (7.0.x milestone). This issue does not authorize merging PR #5376 or changing telemetry/project settings.

Activity

  1. added this to the 7.0.x milestone on Nov 2, 2026
  2. modified the milestones: 7.0.x, 7.0.0 on Nov 15, 2026
  3. github-actions commented on Nov 17, 2026

    @github-actions

    🎉 This issue has been resolved in version 7.0.0 🎉
    The release is available on:

    Your GitReleaseManager bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions