mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
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:
1 parent
2d87367b48
commit
d5e86bb4d9
2 files changed
+73
-3
No files matched your search
@@ -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();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user