Conversation
…ub App Replace GITHUB_TOKEN (with elevated permissions) with the pr-automation-bot-public app token for all authenticated operations: - Remove workflow-level contents: write + pull-requests: write permissions - Add create-github-app-token step (client-id + private-key from org vars/secrets) - Use app token for gh api, gh pr list, and gh pr create - Update git identity to pr-automation-bot-public[bot] Matches the pattern applied to sync-motoko.yml in #197.
Covers all files changed by the two automated workflows: - sync-motoko: .sources/motoko, .sources/VERSIONS, docs/languages/motoko/* - update-syntax-grammars: syntaxes/*.tmLanguage.json Required by the External PR Ruleset (dfinity/public-workflows check_bot_approved_files.py) which blocked the v1.7.0 Motoko sync PR (#201) with a 404 on this missing file.
lwshang
approved these changes
May 5, 2026
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.
Summary
Applies the same bot-token migration from #197 (`sync-motoko`) to the `Update syntax grammars` workflow, and adds the missing `BOT_APPROVED_FILES` policy that was needed for both workflows (the absence of this file caused the External PR Ruleset to block #201).
`update-syntax-grammars` changes:
`.github/repo_policies/BOT_APPROVED_FILES` (new):
After this PR merges, #201 will need a re-run of the `External PR Ruleset` check to pass.
Sync recommendation
`hand-written`