#2444 Implement retry logic for GitHub App token requests to handle transient errors
GetGitHubAppAuthToken now retries transient failures on GitHub API requests for retrieving installation tokens, using three attempts with 5 and 10 second waits to handle intermittent errors.
- 3files
- 1AL files
- 0objects
Pull request · merged into main on 2026-11-19 by AlexanderMarcher · 3 files (+63 -2), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- GET and POST requests in GetGitHubAppAuthToken are wrapped with retry logic
- Retries use same settings as other GitHub API calls: 3 attempts with 5 and 10 second delays
- JWT token validity and short-lived token creation make retrying safe
- Pester unit tests cover 404 on installation lookup, 502 on token request, and repeated failures
- All actions using GitHub App authentication benefit, not just CheckForUpdates
- Behaviour changes for users or extensions.
AL objects touched
Actions/Github-Helper.psm1: modified, not in the BC? snapshot
Context
- Systems: platform
Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).