-
Notifications
You must be signed in to change notification settings - Fork 26
fix: Pass installation ID from env for usage report #2140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
premium/usage.go
Outdated
switch tokenType { | ||
case auth.SyncRunAPIKey, auth.SyncTestConnectionAPIKey: | ||
case auth.APIKey: | ||
return os.Getenv("_CQ_INSTALLATION_ID") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why switch on token type at all and not always return os.Getenv("_CQ_INSTALLATION_ID")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also do that, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just did that in 63fb2dc
🤖 I have created a release *beep* *boop* --- ## [4.79.1](v4.79.0...v4.79.1) (2025-05-03) ### Bug Fixes * **deps:** Update golang.org/x/exp digest to 7e4ce0a ([#2135](#2135)) ([efb8813](efb8813)) * **deps:** Update module github.com/grpc-ecosystem/go-grpc-middleware/v2 to v2.3.1 ([#2136](#2136)) ([5534187](5534187)) * **deps:** Update module github.com/rs/zerolog to v1.34.0 ([#2138](#2138)) ([e1bcb05](e1bcb05)) * **deps:** Update module google.golang.org/grpc to v1.72.0 ([#2141](#2141)) ([a0f27a3](a0f27a3)) * Pass installation ID from env for usage report ([#2140](#2140)) ([4d36bfb](4d36bfb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Follow-up to #2106
Plugins use regular team API keys for usage reports, not platform-specific local API keys.