ci: fix missing github token #428
main fromrefs/pull/428/head·merged by lachlancollins 🎯 Changes#
At some point recently, we removed the GH_TOKEN secret, which has broken this CI. This secret is actually not necessary, as the CI should really use the job-provided ${{ github.token }} with the scoped permissions.
✅ Checklist#
- I have followed the steps in the Contributing guide.
- I have tested this code locally with
pnpm test:pr.
🚀 Release Impact#
- This change affects published code, and I have generated a changeset.
- This change is docs/CI/dev-only (no release).
Summary by CodeRabbit#
- Documentation
- Clarified that a custom GitHub token requires a
GH_TOKENsecret, while the action can use GitHub’s default token when no custom token is provided. - Updated the release workflow example to omit the custom token setting.
- Clarified that a custom GitHub token requires a
- 1
🚀 Changeset Version Preview#
No changeset entries found. Merging this PR will not cause a version bump for any packages.
No actionable comments were generated in the recent review.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
3c51e28f-906c-4847-a034-9f8790ef3a7a
Commits-
Reviewing files that changed from the base of the PR and between 0e4c94811ee024520b2ea330855f2d38549a7d92 and 6aeff7022fc01b887271364b143e80198436c11b.
Files selected for processing: 3-
.github/comment-on-release/README.md.github/comment-on-release/action.yml.github/workflows/release.yml
Files with no reviewable changes: 2-
- .github/workflows/release.yml
- .github/comment-on-release/README.md
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
-
Walkthrough
-
The action now assigns
GH_TOKENfrom its input. The release workflow no longer passes aGH_TOKENsecret. The README explains custom-token requirements and defaultgithub.tokenbehavior.Changes: Release comment token handling
Layer / File(s) Summary Token input and workflow usage
.github/comment-on-release/action.yml,.github/workflows/release.yml,.github/comment-on-release/README.mdThe action assigns GH_TOKENdirectly from its input. The release workflow removes its explicitGH_TOKENsecret settings. The README describes using a custom token or the defaultgithub.tokenwhen the input is omitted or empty.Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers:
tannerlinsley,schiller-manuel
Merge Risk:
Minimal · up to6aeff-
No merge-blocking risk is evident; the documented default-token and custom-token paths remain available.
Pre-merge checks:
5-
Check name Status Explanation Title check The title clearly and concisely describes the CI change to restore GitHub token usage. Description check The description includes the required Changes, Checklist, and Release Impact sections. It explains the motivation, records testing, and identifies the change as CI-only. Docstring Coverage No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
-
View your CI Pipeline Execution ↗ for commit 6aeff7022fc01b887271364b143e80198436c11b
Command Status Duration Result nx affected --targets=test:sherif,test:docs,tes...✅ Succeeded <1s View ↗ nx run-many --target=build✅ Succeeded <1s View ↗
☁️ Nx Cloud last updated this comment at
2026-11-02 11:12:18UTCnpm i https://pkg.pr.new/@tanstack/eslint-config@428npm i https://pkg.pr.new/@tanstack/publish-config@428npm i https://pkg.pr.new/@tanstack/typedoc-config@428npm i https://pkg.pr.new/@tanstack/vite-config@428commit:
6aeff70schiller-manuel(GitHub profile, opens in a new tab) approved these changes
lachlancollins merged this87a2412
lachlancollins closed this
Sign in to join this conversation.
⚠️ No Changeset found#
Latest commit: 6aeff7022fc01b887271364b143e80198436c11b
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR