Repository navigation
Run the seed rotation with the endpoints automation app's token - #166
Merged
Merged
Conversation
Pushes and PRs made with GITHUB_TOKEN start no workflows, so cla-check never ran on a rotation PR and had to be fired by hand. The job now mints a token from the endpoints automation app (secrets in the `AI workflow` environment, limited to main) and uses it to push, open the PR and comment. GITHUB_TOKEN gets no permissions. Commits are authored by the app's bot account, and the PR body no longer carries the manual cla-check note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The app’s required write permissions and main-only AI workflow environment/secrets remain unverified and require live confirmation, including the documented main-branch dry run, beyond code review.
No open issues 🎉
What changed in this PR
Updates seed rotation to use the endpoints automation app’s token so rotation PRs trigger required checks, including cla-check.
Changes:
- Mints a repository-scoped app token for checkout, PR lookup, comments, and PR creation.
- Uses the
AI workflowenvironment and removesGITHUB_TOKENpermissions. - Attributes commits to the app’s bot account and removes the obsolete CLA-check workaround from the PR body.
| File | Description |
|---|---|
.github/workflows/rotate-seed-sets.yml |
Switches rotation operations and commit attribution to the automation app. |
Review effort: Balanced
pgmpablo157321
approved these changes
Nov 17, 2026
pgmpablo157321
temporarily deployed
to
AI workflow
November 18, 2026 19:49 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rotate-seed-sets.ymlpushed the rotation branch and opened its PR withGITHUB_TOKEN. GitHub starts no workflows for events made with that token. This switches the job to the endpoints automation app, the same app and environment as #162.Changes
actions/create-github-app-tokenv3.3.0, pinned by SHA like the other actions in this file.ENDPOINTS_AUTOMATION_BOT_CLIENT_IDandENDPOINTS_AUTOMATION_APP_PVT_KEY.contents: writeandpull-requests: write.git pushuses it;gh pr create.AI workflow, which holds the secrets and is limited tomain. The weekly schedule always runs frommain. A manual run from another branch fails at the environment, which is intended.GITHUB_TOKENis reduced topermissions: {}.<app-slug>[bot]), so the commit and the PR have the same author.bot*is matched as an unanchored regex inmlcommons/cla-bot, so a name containing[bot]passes.Before merging
endpoints_policieswith Contents: write and Pull requests: write. Start the policy syncs when a PR merges #162 only needs Actions onendpoints-automations, so this may be new. If the installation lacks either permission, the mint step fails.Testing
actionlintreports no issues.main.mainwithdry_run: truechecks the parts that need the real app without opening a PR:🤖 Generated with Claude Code