release-drafter: pass GITHUB_TOKEN to the action #252

Merged
raucao merged 2 commits from fix/release-drafter-token into master 2026-10-29 17:47:51 +00:00
Owner

Problem

The Release Drafter workflow fails on every merged PR:

Download action repository 'raucao/gitea-release-drafter@dev'
...
::error::token is required

The action reads the token from the GITHUB_TOKEN environment variable and aborts when it is empty. The workflow never set it, so it has been failing since the @dev action started requiring the token (passes on #249 in Jan 2025, fails on #250 and #251).

Fix

Pass the built-in token, matching the workflows already used in kredits/hubot-kredits and kredits/kredits-web:

        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
## Problem The Release Drafter workflow fails on every merged PR: ``` Download action repository 'raucao/gitea-release-drafter@dev' ... ::error::token is required ``` The action reads the token from the `GITHUB_TOKEN` environment variable and aborts when it is empty. The workflow never set it, so it has been failing since the `@dev` action started requiring the token (passes on #249 in Jan 2025, fails on #250 and #251). ## Fix Pass the built-in token, matching the workflows already used in `kredits/hubot-kredits` and `kredits/kredits-web`: ```yaml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ```
raucao added 1 commit 2026-10-29 16:31:40 +00:00
The action reads the token from the GITHUB_TOKEN environment variable and
aborts with "token is required" when it is unset, so the workflow has been
failing on every merged PR. Set it from the built-in GITHUB_TOKEN secret, as
the hubot-kredits and kredits-web workflows already do.
raucao added 1 commit 2026-10-29 16:32:23 +00:00
release-drafter: allow manual runs
Release Drafter / Update release notes draft (pull_request) Successful in 3s
ec3abfe7db
Add workflow_dispatch so the draft release can be (re)generated on demand,
matching kredits/hubot-kredits.
raucao added the kredits-1dev environment labels 2026-10-29 17:47:45 +00:00
raucao merged commit e5daf9c3e3 into master 2026-10-29 17:47:51 +00:00
raucao deleted branch fix/release-drafter-token 2026-10-29 17:47:53 +00:00
Sign in to join this conversation.