Repository navigation
ci: tag with the built-in GITHUB_TOKEN instead of S9_GITHUB_TOKEN - #142
Conversation
S9_GITHUB_TOKEN is an org PAT, last rotated 2025-09-15. It now returns HTTP 401 (it tagged successfully until late August). The reusable pipeline's tag job would fail on the next release, leaving the version untagged, and every later run would recompute the same version. The tag job needs only contents: write on this repository. This workflow already grants that, and GITHUB_TOKEN never expires. No workflow here is triggered by tags, so it doesn't matter that GITHUB_TOKEN-created tags start no other runs. Bitween-api uses the same reusable tag job with GITHUB_TOKEN, and its tag job succeeds.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: simplify9/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)Treat GitHub Actions changes as supply-chain sensitive.⚙️ CodeRabbit configuration file Files:
🔇 Additional comments (1)
📝 Summary
WalkthroughThe CI/CD workflow now uses ChangesTagging token update
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Suggested labels: Suggested reviewers: Merge Risk: ⚪ Minimal · up to The built-in token can create the release tag in this repository. No concrete merge-blocking issue remains. Architecture SummaryArchitecture risk: 🔵 Low · up to The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency. Changed systems: None identified. Architecture concerns Review detailsBefore / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. Comment |
Why
The tag step passed
secrets.S9_GITHUB_TOKENtoreusable-service-cicd. That org PAT (last rotated 2025-09-15) now returns HTTP 401. On the next release thetagjob would fail and leave the version untagged, and every later run would recompute the same version.Change
github-token: ${{ secrets.GITHUB_TOKEN }}: the job's built-in token, minted per run, scoped to this repo, and never expiring. The comments are updated to match.Why this is safe
contents: writeon this repo, which this workflow already grants (permissions: contents: write).GITHUB_TOKENdon't start other runs.reusable-service-cicdtag job withgithub-token: ${{ secrets.GITHUB_TOKEN }}succeeded in Bitween-api today.actionlintis clean.Can be merged independently of any other PR.