(allowRetry = true, maxRetry = 10)
| 514 | const core_1 = __nccwpck_require__(7484); |
| 515 | class OidcClient { |
| 516 | static createHttpClient(allowRetry = true, maxRetry = 10) { |
| 517 | const requestOptions = { |
| 518 | allowRetries: allowRetry, |
| 519 | maxRetries: maxRetry |
| 520 | }; |
| 521 | return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); |
| 522 | } |
| 523 | static getRequestToken() { |
| 524 | const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN']; |
| 525 | if (!token) { |
no test coverage detected