diff --git a/sources/src/develocity/short-lived-token.ts b/sources/src/develocity/short-lived-token.ts index 4f34878d..14a05f33 100644 --- a/sources/src/develocity/short-lived-token.ts +++ b/sources/src/develocity/short-lived-token.ts @@ -80,12 +80,9 @@ class ShortLivedTokenClient { retryInterval = 1000 constructor(develocityAllowUntrustedServer: boolean | undefined) { - this.httpc = new httpm.HttpClient('gradle/actions/setup-gradle') - if (develocityAllowUntrustedServer !== undefined) { - this.httpc.requestOptions = { - ignoreSslError: develocityAllowUntrustedServer - } - } + this.httpc = new httpm.HttpClient('gradle/actions/setup-gradle', undefined, { + ignoreSslError: develocityAllowUntrustedServer + }) } async fetchToken(serverUrl: string, accessKey: HostnameAccessKey, expiry: string): Promise {