mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-02 13:21:31 +00:00
Backport #870 Close #1281 Co-authored-by: mscherer <mscherer@users.noreply.github.com>
This commit is contained in:
parent
5d95a7cede
commit
3127ba9c7c
|
@ -37,7 +37,9 @@ func NewClient(c *cli.Context) (woodpecker.Client, error) {
|
|||
|
||||
// attempt to find system CA certs
|
||||
certs, err := x509.SystemCertPool()
|
||||
log.Error().Msgf("failed to find system CA certs: %v", err)
|
||||
if err != nil {
|
||||
log.Error().Msgf("failed to find system CA certs: %v", err)
|
||||
}
|
||||
tlsConfig := &tls.Config{
|
||||
RootCAs: certs,
|
||||
InsecureSkipVerify: skip,
|
||||
|
|
Loading…
Reference in a new issue