File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,10 @@ func exchangeOidcTokenAndSetAccessToken(cc *ConfigCommand) error {
231231 SetProjectKey (cc .oidcSetupParams .ProjectKey ).
232232 SetRepository (cc .oidcSetupParams .Repository ).
233233 SetJobId (cc .oidcSetupParams .JobId ).
234- SetRunId (cc .oidcSetupParams .RunId )
234+ SetRunId (cc .oidcSetupParams .RunId ).
235+ SetVcsRevision (cc .oidcSetupParams .VcsRevision ).
236+ SetVcsBranch (cc .oidcSetupParams .VcsBranch ).
237+ SetVcsUrl (cc .oidcSetupParams .VcsUrl )
235238
236239 // Usage report will be sent only after execution in order to have valid token
237240 err := ExecAndThenReportUsage (exchangeOidcTokenCmd )
Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ func (otc *OidcTokenExchangeCommand) getOidcTokenParams() services.CreateOidcTok
210210 oidcTokenParams .Repo = otc .Repository
211211 oidcTokenParams .Audience = otc .Audience
212212 oidcTokenParams .ProviderName = otc .ProviderName
213+ oidcTokenParams .ProviderType = otc .ProviderType .String ()
213214 oidcTokenParams .Context = & services.Context {
214215 VcsCommit : & services.VcsCommit {
215216 VcsUrl : otc .VcsUrl ,
Original file line number Diff line number Diff line change 7777 //#nosec G101
7878 EncryptionKey = "JFROG_CLI_ENCRYPTION_KEY"
7979 // For CI runs
80- CIJobID = "JFROG_CLI_CI_JOB_ID"
81- CIRunID = "JFROG_CLI_CI_RUN_ID"
80+ CIJobID = "JFROG_CLI_CI_JOB_ID"
81+ CIRunID = "JFROG_CLI_CI_RUN_ID"
82+ CIVcsUrl = "JFROG_CLI_CI_VCS_URL"
83+ CIVcsRevision = "JFROG_CLI_CI_VCS_REVISION"
84+ CIVcsBranch = "JFROG_CLI_CI_BRANCH"
8285)
You can’t perform that action at this time.
0 commit comments