chore: use OPENHANDS_BOT_GITHUB_PAT_PUBLIC in sync workflows#473
Merged
all-hands-bot merged 2 commits intomainfrom Apr 23, 2026
Merged
chore: use OPENHANDS_BOT_GITHUB_PAT_PUBLIC in sync workflows#473all-hands-bot merged 2 commits intomainfrom
all-hands-bot merged 2 commits intomainfrom
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Contributor
all-hands-bot
left a comment
There was a problem hiding this comment.
Taste Rating: 🟢 Good taste - Clean, focused security improvement
[RISK ASSESSMENT]
- [Overall PR]
⚠️ Risk Assessment: 🟢 LOW
This is a workflow-only change that improves security by replacing a shared PAT with a fine-grained token. Defensive conditionals ensure graceful degradation if the secret is missing. No code logic changes, easily revertible.
VERDICT:
⏸️ Ready to merge after prerequisites - Code changes are correct, but verify prerequisites are met before merging
KEY INSIGHT:
Textbook example of reducing security blast radius through fine-grained permissions - clean implementation with defensive fallbacks.
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.
Part of OpenHands/evaluation#428 (PAT blast-radius reduction).
Replaces
secrets.PAT_TOKEN→secrets.OPENHANDS_BOT_GITHUB_PAT_PUBLICin the two auto-approve workflows:.github/workflows/sync-docs-code-blocks.yml.github/workflows/sync-agent-sdk-openapi.ymlThe
OPENHANDS_BOT_GITHUB_PAT_PUBLICtoken is a fine-grained PAT scoped only to public OpenHands repos with the narrowest permissions needed to approve these bot-authored PRs — tighter than the sharedPAT_TOKENit replaces.Prerequisites
OpenHands/docsadded to theOPENHANDS_BOT_GITHUB_PAT_PUBLICfine-grained PAT repo allowlistOPENHANDS_BOT_GITHUB_PAT_PUBLICsecret added toOpenHands/docsrepository secrets