Repository navigation
fix: use a GitHub App token in the GeoLite update workflow - #508
Merged
abhalsod-sonata merged 1 commit intoOct 8, 2026
Merged
Conversation
The GH_PAT_WITH_ORG secret is a personal access token whose owner account was deactivated, so gh pr create fails with "must be a collaborator". SRE is replacing personal access tokens with GitHub Apps (DOS-7368). Generate a short-lived installation token with actions/create-github-app-token and use it for gh pr create. The App credentials come from the GH_APP_CLIENT_ID and GH_APP_PRIVATE_KEY repository secrets. LP-1331
Member
Author
|
Converting to draft until SRE creates the GitHub App and adds the Merge order
After both are merged, run the workflow manually and confirm it opens a PR authored by the App: |
abhalsod-sonata
marked this pull request as ready for review
October 8, 2026 10:34
hiteshkava
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The "Update GeoLite Database" workflow has failed since 2026-10-01 (run 36809399679).
gh pr createuses theGH_PAT_WITH_ORGsecret, a personal access token whose owner account has been deactivated:SRE is moving away from personal access tokens and is creating a GitHub App for this workflow instead (DOS-7368). This PR switches the workflow to that App:
actions/create-github-app-token@v3to exchange the App credentials for a short-lived installation token scoped to this repository.gh pr createnow uses that token instead ofGH_PAT_WITH_ORG.GITHUB_TOKEN.Impacted roles: Developer / Operator (CI only, no runtime change).
GitHub App (requested in DOS-7368)
edx-platform-geolite-updater(final name is up to SRE)edx/edx-platformonly, no webhookedx/orbi-bomteam as reviewerSRE adds the App credentials directly as repository secrets in this repo. They are not shared outside GitHub (no Keeper, email or direct message).
GH_APP_CLIENT_ID: the App's Client ID (create-github-app-token@v3usesclient-id;app-idis deprecated)GH_APP_PRIVATE_KEY: the App's private keyMerge plan
GH_PAT_WITH_ORGsecret.Supporting information
Testing instructions
GH_APP_CLIENT_IDandGH_APP_PRIVATE_KEYexist under Settings > Secrets and variables > Actions.gh workflow run update-geolite-database.yml -R edx/edx-platform --ref release-ulmo<app-name>[bot]) withedx/orbi-bomrequested as reviewer.Deadline
Before the next scheduled run on 2026-11-01.