File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,8 @@ func exchangeOidcTokenAndSetAccessToken(cc *ConfigCommand) error {
236236 SetJobId (cc .oidcSetupParams .JobId ).
237237 SetRunId (cc .oidcSetupParams .RunId )
238238
239- err := Exec (accessTokenCreateCmd )
239+ // Usage report will be sent only after execution in order to have valid token
240+ err := ExecAndReportUsage (accessTokenCreateCmd )
240241 if err != nil {
241242 return err
242243 }
Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ func (otc *OidcTokenExchangeCommand) Run() (err error) {
150150 if err != nil {
151151 return err
152152 }
153+ // Update server details with the exchanged access token
154+ otc .serverDetails .AccessToken = otc .response .AccessToken
153155 return
154156}
155157
You can’t perform that action at this time.
0 commit comments