Repository navigation
chore(ci): use built-in token for catalog issue writes - #348
Merged
Merged
Conversation
Workit-Session: ses_dbdda4daaffexKPxS5Z9LKhpI2
Contributor
|
🎉 This PR is included in version 0.12.56 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Why
Manual catalog-sync run
47401342274extracted the catalog successfully but failed while closing the duplicate[catalog-break]issues:The workflow passed
RELEASE_SYNC_TOKEN(the PAT) as bothGH_TOKENandGITHUB_TOKEN. That PAT is required for PR creation so GitHub starts CI on the branch, but it does not carry Issues write. The built-inGITHUB_TOKENalready hasissues: writefrom the workflow permissions.What
src/catalog-break-reporter.ts: addghEnvironment()and an optional token togithubCli(), so issue calls can use a different credential.scripts/catalog-sync-ci.ts: two runners —ghkeeps the PAT for PRs,issueGhusesCATALOG_ISSUES_TOKENfor issue create/edit/comment/close..github/workflows/catalog-sync.yml: setCATALOG_ISSUES_TOKEN: ${{ github.token }}; use the built-in token for label management too.Verification
bun run check— 297 tests pass.