Skip to content

ci: update the Baseline Profiles pull request without needing read:org - #1089

Merged
dkhawk merged 2 commits into
mainfrom
ci/baseline-profiles-pr-edit-token
Nov 23, 2026
Merged

dkhawk merged 2 commits into
mainfrom
ci/baseline-profiles-pr-edit-token

Conversation

@kikoso

@kikoso kikoso commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

The baseline-profiles / regenerate job has been failing on every push to main since #1082 was opened (for example this run, and the same error on e87f708b and c6ea1f09). The profiles are generated and the branch is pushed, but the last step fails:

Your token has not been granted the required scopes to execute this query. The 'login' field requires one of the following scopes: ['read:org'], but your token has only been granted the: ['repo', 'workflow', 'write:packages'] scopes.

When the pull request already exists, the step runs gh pr edit, which also queries fields that need read:org. SYNCED_GITHUB_TOKEN_REPO does not have that scope. The first run worked because it went through gh pr create instead.

This updates the body through the REST API (PATCH /repos/{owner}/{repo}/pulls/{number}), which only needs repo, so the token does not need a wider scope. gh pr list and gh pr create are unchanged.

Checked with actionlint. The real proof is the next run on main after this merges, which should update #1082 and go green.

@kikoso
kikoso requested a review from a team as a code owner November 17, 2026 05:26
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Coverage (unit tests)

Compared against bb6cbe5 on main (#1091).

Module Line % Change Branch % Change
maps-compose 15.32% no change 3.97% no change
maps-compose-utils 26.29% no change 12.70% no change
maps-compose-widgets 3.87% no change 0.00% no change
TOTAL 17.38% no change 5.62% no change

Line and branch coverage from unit test reports. History is recorded on the coverage-history branch after each merge to main.

@googlemaps-bot

googlemaps-bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Coverage (instrumentation tests)

Overall Project 45.87% 🍏

There is no coverage information present for the Files changed

@kikoso

kikoso commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @dkhawk ! Could you take a look at this one when you have a moment? CI is green, it only needs a review. Thanks!

@dkhawk
dkhawk enabled auto-merge (squash) November 23, 2026 22:35
@dkhawk
dkhawk merged commit 5076c5a into main Nov 23, 2026
14 checks passed
@dkhawk
dkhawk deleted the ci/baseline-profiles-pr-edit-token branch November 23, 2026 22:43
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.

3 participants