1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Add caBundle to bitbucket

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
Somtochi Onyekwere
2021-11-23 12:37:39 +01:00
parent 43c6a1531a
commit a03574f8c3
2 changed files with 14 additions and 0 deletions

View File

@@ -63,6 +63,9 @@ func BuildGitProvider(config Config) (gitprovider.Client, error) {
if config.Hostname != "" {
opts = append(opts, gitprovider.WithDomain(config.Hostname))
}
if config.CaBundle != nil {
opts = append(opts, gitprovider.WithCustomCAPostChainTransportHook(config.CaBundle))
}
if client, err = stash.NewStashClient(config.Username, config.Token, opts...); err != nil {
return nil, err
}