Repository navigation
Authenticate deploys with a GitHub App instead of a personal token - #238
Merged
Merged
Conversation
The organization rejects classic personal access tokens, so every deploy and preview fails with a 403 when reading organization roles. Short-lived GitHub App tokens fix this and no longer depend on one person's account. Co-authored-by: davidsp <davidsp@anthropic.com>
Pulumi PreviewClick to expand preview output |
4 tasks done
pcarleton
pushed a commit
that referenced
this pull request
Nov 24, 2026
The production environment now only deploys from main, so it rejects the pull request refs that preview.yml runs on and the Preview job fails before its first step. Point the job at a `preview` environment instead and document which environment holds which credentials. The secret and variable names are unchanged. The `preview` environment is meant to hold a read-only GitHub App rather than the deploy App, the follow-up noted in #238. Claude-Session: https://claude.ai/code/session_016HDqNdz6KVjegQzqngoZKa Co-authored-by: Claude <noreply@anthropic.com>
This branch was previously deployed
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.
Summary
Deploy and Preview now log in to GitHub with short-lived tokens from the
mcp-access-deployGitHub App. Both have been failing because the organization rejects classic personal access tokens:main.Merging deploys immediately. That run also applies #234 and #235, which are merged but not yet deployed. Please watch it: writes and the refresh pass have not been tested with the App token.
Known limitations
Contentspermission, so GitHub hides merge settings from it. Repositories with asettingsblock may show repeated changes to those settings.templateneedsContentsread. No entry uses it today.Follow-ups
PULUMI_GITHUB_TOKENand revoke the old token after two successful deploys.Test plan
Both workflow files parse as YAML and the README passes Prettier. The App is installed on all repositories with the permissions listed in the README. Minting a token and reading organization roles are first exercised by the Preview run on this PR.
Generated by Claude Code