Skip to content

Pass GH_TOKEN to gh release create#457

Merged
mame merged 1 commit into
ruby:masterfrom
sinsoku:fix-gh-token-in-release-workflow
May 15, 2026
Merged

Pass GH_TOKEN to gh release create#457
mame merged 1 commit into
ruby:masterfrom
sinsoku:fix-gh-token-in-release-workflow

Conversation

@sinsoku
Copy link
Copy Markdown
Collaborator

@sinsoku sinsoku commented May 15, 2026

Summary

gh CLI does not read the Actions token automatically.
It must be passed via the GH_TOKEN env var.

Notes

This is the same fix as the example displayed by gh cli.

gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable. Example:
  env:
    GH_TOKEN: ${{ github.token }}

@sinsoku sinsoku force-pushed the fix-gh-token-in-release-workflow branch from d019469 to 5617967 Compare May 15, 2026 01:10
`gh` CLI does not read the Actions token automatically.
It must be passed via the GH_TOKEN env var.
@sinsoku sinsoku force-pushed the fix-gh-token-in-release-workflow branch from 5617967 to c50cfca Compare May 15, 2026 01:11
@sinsoku sinsoku changed the title Pass GITHUB_TOKEN to gh release create Pass GH_TOKEN to gh release create May 15, 2026
@mame mame merged commit ca7ecc1 into ruby:master May 15, 2026
6 checks passed
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.

2 participants