Skip to content

fix: add pull-requests: write permission to merge-to-main job#213

Merged
petesramek merged 1 commit intodevelop/1.0from
copilot/optimize-polyline-accuracy
Apr 4, 2026
Merged

fix: add pull-requests: write permission to merge-to-main job#213
petesramek merged 1 commit intodevelop/1.0from
copilot/optimize-polyline-accuracy

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 4, 2026

The merge-to-main job was failing because GITHUB_TOKEN lacked pull-requests: write, causing gh pr create to be rejected with GraphQL: Resource not accessible by integration (createPullRequest).

Change

  • Added job-level permissions block to merge-to-main with pull-requests: write and contents: read, scoped only to the job that needs it rather than elevating the entire workflow.
merge-to-main:
  ...
  permissions:
    pull-requests: write
    contents: read

@petesramek petesramek marked this pull request as ready for review April 4, 2026 19:36
@petesramek petesramek closed this Apr 4, 2026
@petesramek petesramek reopened this Apr 4, 2026
@petesramek petesramek enabled auto-merge (squash) April 4, 2026 19:36
@petesramek petesramek closed this Apr 4, 2026
auto-merge was automatically disabled April 4, 2026 19:42

Pull request was closed

@petesramek petesramek reopened this Apr 4, 2026
@petesramek petesramek enabled auto-merge (squash) April 4, 2026 19:43
@petesramek petesramek merged commit eeebf3b into develop/1.0 Apr 4, 2026
15 checks passed
@petesramek petesramek deleted the copilot/optimize-polyline-accuracy branch April 4, 2026 19:44
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