Skip to content

fix: default token only on public github instance#157

Merged
xhyrom merged 2 commits intomainfrom
fix/default-token-only-on-public-github
Jan 16, 2026
Merged

fix: default token only on public github instance#157
xhyrom merged 2 commits intomainfrom
fix/default-token-only-on-public-github

Conversation

@xhyrom
Copy link
Collaborator

@xhyrom xhyrom commented Jan 16, 2026

Fixes #156

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the default value for the token input in the GitHub Action to only use github.token when running on public GitHub (github.com), and defaults to an empty string for GitHub Enterprise Server (GHES) instances.

Changes:

  • Updated the token input's default value to conditionally use github.token only on public GitHub

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xhyrom xhyrom merged commit 3d26778 into main Jan 16, 2026
83 checks passed
@xhyrom xhyrom changed the title fix: default token only on public github fix: default token only on public github instance Jan 16, 2026
@coderabbitai
Copy link

coderabbitai bot commented Jan 16, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

The token input default in the action configuration was updated to conditionally use github.token only when running on github.com, while defaulting to an empty string on GitHub Enterprise Server. The input description was expanded to document this behavior and rate-limiting considerations.

Changes

Cohort / File(s) Change Summary
Action Configuration
action.yml
Updated token input default from static github.token to conditional expression that uses github.token only when github.server_url == 'https://github.com', otherwise defaults to empty string. Expanded input description to explicitly document GHES behavior and rate-limiting guidance.


📜 Recent review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between db6bcf6 and e6c1039.

📒 Files selected for processing (1)
  • action.yml

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@xhyrom xhyrom deleted the fix/default-token-only-on-public-github branch January 16, 2026 15:36
luka5 added a commit to luka5/claude-code-action that referenced this pull request Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

401 Unauthorized error when trying to use the v2 tag after the 2.1.1 release on an enterprise github instance

2 participants