Skip to content

ci: open the upstream sync PR with a Refresh Bot token - #87

Merged
imanimanyara merged 2 commits into
mainfrom
ci/sync-pr-via-refresh-bot
Nov 2, 2026
Merged

imanimanyara merged 2 commits into
mainfrom
ci/sync-pr-via-refresh-bot

Conversation

@imanimanyara

Copy link
Copy Markdown
Contributor

Summary

The scheduled Sync upstream run failed on 2026-11-02 at its last step (icon-sets-tabler run 41482280677): gh pr create answered "GitHub Actions is not permitted to create or approve pull requests", after the asset refresh had succeeded and pushed its branch.

The workflow now mints a per-run Refresh Bot token (actions/create-github-app-token@v3, contents and pull-requests write) and uses it for the push and the PR, so the PR can be opened and its CI starts. The commit-status step keeps GITHUB_TOKEN. Same change in icon-sets-tabler, -flag, -emoji and -bundled.

GITHUB_TOKEN may not create pull requests in this organisation, so the scheduled sync failed at gh pr create after a successful refresh. A per-run Refresh Bot token (contents and pull-requests write) can, and its PR starts CI like any other.
Copilot AI balanced review requested due to automatic review settings November 2, 2026 16:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@imanimanyara
imanimanyara merged commit b0bdf98 into main Nov 2, 2026
10 checks passed
@imanimanyara
imanimanyara deleted the ci/sync-pr-via-refresh-bot branch November 2, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants