Skip to content

ci: fix the Baseline Profiles PR update and its CLA check - #1872

Open
kikoso wants to merge 2 commits into
mainfrom
ci/baseline-profiles-pr-edit-rest
Open

kikoso wants to merge 2 commits into
mainfrom
ci/baseline-profiles-pr-edit-rest

Conversation

@kikoso

@kikoso kikoso commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

The baseline-profiles / regenerate job has failed on every release-please run since #1866 was opened (Nov 24, Nov 25 and today on 90505fb). The profiles are regenerated and force-pushed fine, but the last step dies when it updates the existing PR:

GraphQL: 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.

gh pr edit also queries org-level fields (projects, teams) even when only the body changes, so it needs read:org. SYNCED_GITHUB_TOKEN_REPO does not have it. The gh pr create path does not hit this, which is why the first run (that opened #1866) passed.

This replaces gh pr edit with a PATCH /repos/{owner}/{repo}/pulls/{number} call, which only needs repo access. I prefer this over adding read:org to the token, since the token does not need org access for anything else.

Checked with actionlint (including shellcheck on the run block). The real test is the next release-please run on main while #1866 is still open.

Second fix: CLA check on the profiles PR

The cla/google check has failed on #1866 since it was opened. The workflow commits as googlemaps-bot@users.noreply.github.com, which is not covered by the CLA. Release-please commits as the same bot with googlemaps-bot@google.com, and its CLA check passes (see #1865). This switches the profiles commit to that address. #1866 will pick it up on the next regenerate run after this is merged.

@kikoso
kikoso requested a review from a team as a code owner November 27, 2026 05:47
@googlemaps-bot

googlemaps-bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 65.98% 🍏

There is no coverage information present for the Files changed

@kikoso kikoso changed the title ci: update the Baseline Profiles PR body through the REST API ci: fix the Baseline Profiles PR update and its CLA check Dec 1, 2026

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