File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,18 @@ def telemetry(cmd, options = {})
2323 c . ssl_config . set_default_paths
2424 end
2525
26+ opts = options . dup
27+ opts . delete ( :private_registry_password )
28+ opts . delete ( :private_registry_username )
29+ opts . delete ( :private_registry_email )
30+
2631 value = {
2732 'email' => token_hash [ 0 ] [ 'email' ] ,
2833 'format' => format ,
2934 'cmd' => cmd ,
30- 'options' => options ,
35+ 'options' => opts ,
3136 'version' => version_string ,
37+ 'os' => RUBY_PLATFORM ,
3238 # https://stackoverflow.com/a/73973555
3339 'github' => ENV [ 'GITHUB_ACTIONS' ] ,
3440 'gitlab' => ENV [ 'GITLAB_CI' ] ,
@@ -45,7 +51,7 @@ def telemetry(cmd, options = {})
4551 'user_id' => user_or_org_id ,
4652 'type' => 'cli_telemetry' ,
4753 'url' => sub ,
48- 'value' => value
54+ 'value' => value . to_json
4955 )
5056 rescue
5157 # since this is just for telemetry we don't want to notify
You can’t perform that action at this time.
0 commit comments