Skip to content

Remove GITHUB_TOKEN env var support - #674

Merged
bluwy merged 1 commit into
mainfrom
no-github-token-env-var
Jun 30, 2026
Merged

Remove GITHUB_TOKEN env var support#674
bluwy merged 1 commit into
mainfrom
no-github-token-env-var

Conversation

@bluwy

Copy link
Copy Markdown
Member

This aligns with the behaviour with the other sub-actions, but with an error if the old pattern is still used.

@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6f1dfae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
NameType
@changesets/actionMajor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment threadsrc/index.ts
core.setFailed("Please add the GITHUB_TOKEN to the changesets action");
return;
const githubToken = getRequiredInput("github-token");
if (process.env.GITHUB_TOKEN && process.env.GITHUB_TOKEN !== githubToken) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we have this "they have to match if both are specified" rule - shouldn't we kinda also enforce that in other subactions that use github-token?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I think this is more for compat to push migration, so eventually in the next major we can remove this and we don't have to mind about GITHUB_TOKEN anymore.

@bluwy
bluwy added this pull request to the merge queueJun 30, 2026
Merged via the queue into main with commit 164652bJun 30, 2026
7 checks passed
@bluwy
bluwy deleted the no-github-token-env-var branch June 30, 2026 00:22
@changesets-org-version-botchangesets-org-version-botBot mentioned this pull request Aug 11, 2026
Sign up for freeto 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.

2 participants

@bluwy@Andarist