Use GitHub App token for CLA commits to satisfy signed commits policy#61
Merged
Conversation
Replaces the CLABotify PAT with a GitHub App installation token. GitHub App tokens are automatically signed by GitHub's web-flow GPG key, which satisfies the org-level signed commits enforcement ruleset. Refs Expensify/Expensify#631744 Co-authored-by: Cursor <cursoragent@cursor.com>
AndrewGable
approved these changes
May 7, 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.
Problem
The CLA bot (CLABotify) was using a Personal Access Token (
CLA_BOTIFY_TOKEN) to push commits to the Expensify/CLA repository. When the Expensify org enabled the "Enforce signed commits" ruleset on 2026-04-09, this started failing — PAT-authenticated API commits are not automatically signed by GitHub.Solution
Replace the PAT with a GitHub App installation token. Commits made via the REST API with a GitHub App installation token are automatically signed by GitHub's
web-flowGPG key — no GPG key management required.This adds a new step before the CLA Assistant action that generates a scoped installation token (limited to the
Expensify/CLArepository) usingactions/create-github-app-token@v3.1.1.Required setup (before merging)
contents: writepermission, installed onExpensify/CLACLA_GITHUB_APP_CLIENT_ID— the App's client IDCLA_GITHUB_APP_PRIVATE_KEY— the App's RSA private key (PEM format)Fixed Issues
$ https://github.com/Expensify/Expensify/issues/631744
Tests
PR Author Checklist
Fixed Issuessection aboveMade with Cursor