We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d5dceb commit a42a10cCopy full SHA for a42a10c
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 {
@@ -131,7 +132,12 @@ export async function run(logger: Logger) {
131
132
throw new Error(oidcWarning);
133
}
134
- const oidcToken = await getIDToken(oidcTokenAudience);
135
+ const oidcToken = await withRetries(
136
+ async (): Promise<string> => {
137
+ return await getIDToken(oidcTokenAudience);
138
+ },
139
+ { retries: 3 },
140
+ )();
141
client = new WorkloadIdentityFederationClient({
142
logger: logger,
143
universe: universe,
0 commit comments