Skip to content

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

Open
kikoso wants to merge 1 commit into
mainfrom
ci/baseline-profiles-pr-edit-token
Open

kikoso wants to merge 1 commit 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

Copy link
Copy Markdown

Coverage (unit tests)

Compared against 126ea04 on main (#1085).

Module Line % Change Branch % Change
maps-compose 15.27% no change 3.75% 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.35% no change 5.46% 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

Copy link
Copy Markdown
Contributor

Coverage (instrumentation tests)

Overall Project 45.96% 🍏

There is no coverage information present for the Files changed

This branch has not been deployed

No deployments
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