parent
140bb5113f
commit
c1ee334b4f
1 changed files with 7 additions and 1 deletions
|
|
@ -31,6 +31,7 @@ import {
|
||||||
parseBoolean,
|
parseBoolean,
|
||||||
parseDuration,
|
parseDuration,
|
||||||
pinnedToHeadWarning,
|
pinnedToHeadWarning,
|
||||||
|
withRetries,
|
||||||
} from '@google-github-actions/actions-utils';
|
} from '@google-github-actions/actions-utils';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
@ -110,7 +111,12 @@ export async function run(logger: Logger) {
|
||||||
throw new Error(oidcWarning);
|
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({
|
client = new WorkloadIdentityFederationClient({
|
||||||
logger: logger,
|
logger: logger,
|
||||||
universe: universe,
|
universe: universe,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue