Compare commits

...

3 Commits

Author SHA1 Message Date
GitHub Actions 7fdbbb8968 chore: Update dist 2026-08-28 18:06:56 +00:00
Zhiwei Liang 3852440c21 fix: skip backoff sleep after the final retryAndBackoff attempt (#1937)
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
Co-authored-by: Joseph Klix <jkl@amazon.com>
2026-08-28 18:03:00 +00:00
Joseph Klix c16f89bdf4 mention renamed repos use the new immutable identifiers (#1941) 2026-08-28 10:19:03 -07:00
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -600,8 +600,9 @@ claims ([1][gh-blog-oidc], [2][sub-claim-custom]).
#### Immutable subject claims
Repositories created on github.com on or after 15 July 2026, and older
repositories that have opted in, emit an [immutable `sub` claim][immutable-sub].
Repositories created on github.com on or after 15 July 2026, older
repositories that have opted in, and older repositories that have been renamed
since 15 July 2026, emit an [immutable `sub` claim][immutable-sub].
This claim appends the permanent numeric ID of the organization and of the
repository after each name, separated by `@`, so that a recycled org or
repository name cannot be used to mint tokens matching a stale trust policy.
Generated Vendored
+1 -1
View File
@@ -74845,11 +74845,11 @@ async function retryAndBackoff(fn, isRetryable, maxRetries = 12, retries = 0, ba
info(
`Retry${opName}: attempt ${nextRetry} of ${maxRetries} failed: ${errorMessage(err)}. Retrying after ${Math.floor(delay)}ms.`
);
await sleep2(delay);
if (nextRetry >= maxRetries) {
info(`Retry${opName}: reached max retries (${maxRetries}); giving up.`);
throw err;
}
await sleep2(delay);
return await retryAndBackoff(fn, isRetryable, maxRetries, nextRetry, base, label);
}
}
+2 -2
View File
@@ -260,13 +260,13 @@ export async function retryAndBackoff<T>(
`Retrying after ${Math.floor(delay)}ms.`,
);
await sleep(delay);
if (nextRetry >= maxRetries) {
core.info(`Retry${opName}: reached max retries (${maxRetries}); giving up.`);
throw err;
}
await sleep(delay);
return await retryAndBackoff(fn, isRetryable, maxRetries, nextRetry, base, label);
}
}