We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 140bb51 commit c1ee334Copy full SHA for c1ee334
src/main.ts
@@ -31,6 +31,7 @@ import {
31
parseBoolean,
32
parseDuration,
33
pinnedToHeadWarning,
34
+ withRetries,
35
} from '@google-github-actions/actions-utils';
36
37
import {
@@ -110,7 +111,12 @@ export async function run(logger: Logger) {
110
111
throw new Error(oidcWarning);
112
}
113
- const oidcToken = await getIDToken(oidcTokenAudience);
114
+ const oidcToken = await withRetries(
115
+ async (): Promise<string> => {
116
+ return await getIDToken(oidcTokenAudience);
117
+ },
118
+ { retries: 3 },
119
+ )();
120
client = new WorkloadIdentityFederationClient({
121
logger: logger,
122
universe: universe,
0 commit comments