mirror of
https://github.com/google-github-actions/auth.git
synced 2026-03-13 18:17:12 -04:00
@@ -31,6 +31,7 @@ import {
|
||||
parseBoolean,
|
||||
parseDuration,
|
||||
pinnedToHeadWarning,
|
||||
withRetries,
|
||||
} from '@google-github-actions/actions-utils';
|
||||
|
||||
import {
|
||||
@@ -110,7 +111,12 @@ export async function run(logger: Logger) {
|
||||
throw new Error(oidcWarning);
|
||||
}
|
||||
|
||||
const oidcToken = await getIDToken(oidcTokenAudience);
|
||||
const oidcToken = await withRetries(
|
||||
async (): Promise<string> => {
|
||||
return await getIDToken(oidcTokenAudience);
|
||||
},
|
||||
{ retries: 3 },
|
||||
)();
|
||||
client = new WorkloadIdentityFederationClient({
|
||||
logger: logger,
|
||||
universe: universe,
|
||||
|
||||
Reference in New Issue
Block a user