Skip to content

fix(ci): use BOT_PR_TOKEN for collect-lime-results PR flow - #86

Merged
ccasanueva7 merged 1 commit into
developfrom
fix/collect-lime-results-bot-pat
May 23, 2026
Merged

fix(ci): use BOT_PR_TOKEN for collect-lime-results PR flow#86
ccasanueva7 merged 1 commit into
developfrom
fix/collect-lime-results-bot-pat

Conversation

@ccasanueva7

Copy link
Copy Markdown
Collaborator

Summary

Swap the default `GITHUB_TOKEN` for the new `BOT_PR_TOKEN` PAT on the steps that create and auto-merge the bot PR. Checkout keeps `GITHUB_TOKEN`.

Why

The org has "Allow GitHub Actions to create and approve pull requests" disabled, so `GITHUB_TOKEN` cannot open PRs or call `gh pr merge --auto`. We can't toggle that at the repo level. `BOT_PR_TOKEN` is a user PAT with Contents + Pull Requests: write on this repo only.

Test plan

  • Merge
  • Manually run "Collect lime-packages test results"
  • Verify bot PR is opened, auto-merges, and report.xml files appear on `develop`

The org disables "write" workflow permissions, so the default
GITHUB_TOKEN cannot open PRs or call gh pr merge --auto. Use the
BOT_PR_TOKEN PAT (Contents + Pull Requests: write on this repo) for
the PR-creating and merging steps. Checkout keeps GITHUB_TOKEN
because it only needs to read the working tree.
@ccasanueva7
ccasanueva7 merged commit 90b7755 into develop May 23, 2026
1 check passed
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.

1 participant