Skip to content

Fix BAZEL_DOC_TRIGGER_TOKEN scope comment to name bazel-docs - #30360

Open
zozo123 wants to merge 3 commits into
bazelbuild:masterfrom
zozo123:fix/docs-trigger-token-scope-comment
Open

Fix BAZEL_DOC_TRIGGER_TOKEN scope comment to name bazel-docs#30360
zozo123 wants to merge 3 commits into
bazelbuild:masterfrom
zozo123:fix/docs-trigger-token-scope-comment

Conversation

@zozo123

@zozo123 zozo123 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Problem

The comment documenting BAZEL_DOC_TRIGGER_TOKEN in trigger-docs-update.yml states that the fine-grained PAT is "Scoped to the bazel-contrib/bcr-ui repository." The workflow, however, sends its repository_dispatch to bazel-contrib/bazel-docs. bcr-ui is an unrelated repository, and a PAT scoped to it cannot dispatch to bazel-docs.

The comment is a copy-paste leftover. Because the comment is what maintainers follow during the annual token rotation it describes, it would lead a rotated token to be scoped to the wrong repository, silently breaking the docs-update trigger.

Fix

Correct the comment to name bazel-contrib/bazel-docs, matching the repository the workflow actually dispatches to.

@github-actions github-actions Bot added team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website awaiting-review PR is awaiting review from an assigned reviewer labels Jul 19, 2026
The comment documenting BAZEL_DOC_TRIGGER_TOKEN said the fine-grained
PAT is scoped to the bazel-contrib/bcr-ui repository, but the workflow
sends its repository_dispatch to bazel-contrib/bazel-docs. bcr-ui is an
unrelated repository, and a PAT scoped to it cannot perform the
dispatch.

The comment is a copy-paste leftover. Since it is what maintainers
follow during the annual token rotation it describes, it would lead a
rotated token to be scoped to the wrong repository and silently break
the docs-update trigger. Correct it to name bazel-contrib/bazel-docs.
@zozo123
zozo123 force-pushed the fix/docs-trigger-token-scope-comment branch from 75fe02a to befc7f7 Compare July 19, 2026 15:33
@meisterT
meisterT requested a review from fweikert July 20, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant