Skip to content
Source
Sign inSign up
TanStack/config

ci: fix missing github token #428

Mergedlachlancollinsmerged 1 commit intomain fromrefs/pull/428/headmerged by lachlancollins

lachlancollinscommented

🎯 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_TOKEN secret, 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.
    1. ⚠️ 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

    2. 🚀 Changeset Version Preview

      No changeset entries found. Merging this PR will not cause a version bump for any packages.

    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      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_TOKEN from its input. The release workflow no longer passes a GH_TOKEN secret. The README explains custom-token requirements and default github.token behavior.

      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.md
      The action assigns GH_TOKEN directly from its input. The release workflow removes its explicit GH_TOKEN secret settings. The README describes using a custom token or the default github.token when 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 to 6aeff

      No merge-blocking risk is evident; the documented default-token and custom-token paths remain available.

      Pre-merge checks: Passed 5
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the CI change to restore GitHub token usage.
      Description checkPassedThe description includes the required Changes, Checklist, and Release Impact sections. It explains the motivation, records testing, and identifies the change as CI-only.
      Docstring CoveragePassedNo 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 checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck 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.

      Share
    4. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit 6aeff7022fc01b887271364b143e80198436c11b

      CommandStatusDurationResult
      nx affected --targets=test:sherif,test:docs,tes...✅ Succeeded<1sView ↗
      nx run-many --target=build✅ Succeeded<1sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-11-02 11:12:18 UTC

    5. npm i https://pkg.pr.new/@tanstack/eslint-config@428
      npm i https://pkg.pr.new/@tanstack/publish-config@428
      npm i https://pkg.pr.new/@tanstack/typedoc-config@428
      npm i https://pkg.pr.new/@tanstack/vite-config@428

      commit: 6aeff70

    6. lachlancollins merged this87a2412

    7. lachlancollins closed this

Sign in to join this conversation.