fix(github): bound and reuse app token fetches

Repeated token exchanges waste requests and JWT work for every event.
Reuse valid installation tokens, share refreshes and back off briefly
after failures while keeping every shared wait bounded.
This commit is contained in:
翅膀 committed 2026-10-23 23:21:38 +08:00
1 parent 2d87367b48
commit d5e86bb4d9
2 files changed
+73 -3

No files matched your search

+1 -1
View File
@@ -116,7 +116,7 @@ describe("getWorkflowRunJobs", () => {
);
});
expect(await getWorkflowRunJobs(JOBS_URL, appId, pem, 555)).toBeDefined();
expect(await getWorkflowRunJobs(JOBS_URL, appId, pem, 5551)).toBeDefined();
expect(tokenUA).toBeTruthy();
expect(sawUA).toBeTruthy();
});