fix(ci): grant pull-requests: write to bump-packages caller#111
Merged
Conversation
…follow-up) PR #110 added pull-requests: write to bump-package.yml so the new auto-merge-PR flow can call gh pr create. The calling workflow main.yml only granted contents: write, so the called workflow could not request the new permission. GitHub fails workflow validation in that case rather than silently dropping the permission. Adds pull-requests: write to the bump-packages job in main.yml so the called bump-package.yml inherits both write scopes.
📦 Release PreviewThis analysis shows the expected release impact: 📈 Expected Version Changes📋 Package Details[
{
"package_name": "keycardai-a2a",
"package_dir": "packages/a2a",
"has_changes": true,
"current_version": "0.2.0",
"next_version": "0.3.0",
"increment": "MINOR"
},
{
"package_name": "keycardai-starlette",
"package_dir": "packages/starlette",
"has_changes": true,
"current_version": "0.3.0",
"next_version": "0.4.0",
"increment": "MINOR"
}
]📝 Changelog PreviewThis comment was automatically generated by the release preview workflow. |
alexh-kc
approved these changes
Apr 30, 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.
Follow-up to #110.
The new bump-package.yml asks for
pull-requests: write(so the script cangh pr create). The calling workflowmain.ymlwas only grantingcontents: writeto thebump-packagesjob, which made GitHub fail workflow validation:Called workflows can only request permissions the caller has already granted. Adds
pull-requests: writeto thebump-packagesjob inmain.ymlso the called workflow inherits both write scopes.After merge, the next change to a package on main should fire a successful bump-via-PR end-to-end.