Repository navigation
[Backport release-1.2] [Backport release-1.3] fix(ci): pass app token to Publish draft release step - #2575
Closed
github-actions[bot] wants to merge 1 commit into
Closed
[Backport release-1.2] [Backport release-1.3] fix(ci): pass app token to Publish draft release step#2575github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
The Publish draft release step used the workflow's default GITHUB_TOKEN, which does not return draft releases from listReleases — so the script failed with "Draft release for vX.Y.Z not found" and every release tag had to be undrafted manually. This same bug was fixed once before in 4db55ac ([ci] Add Github token to fetch draft releases) by adding github-token: GH_PAT to the listing step. It was lost during the refactor in 66a756b that combined the separate listing/flags/publish steps into a single Publish step, and not restored when f96b2da migrated remaining github-token usages from GH_PAT to the cozystack-ci App token. Add github-token: app-token.outputs.token to the merged step so it shares the same auth as the rest of the workflow. Assisted-By: Claude <[email protected]> Signed-off-by: Myasnikov Daniil <[email protected]> (cherry picked from commit 7d2fe2f) (cherry picked from commit 70e8f84)
github-actions
Bot
requested review from
IvanHunters,
Andrey Kolkov (androndo),
Andrei Kvapil (kvaps),
Aleksei Sviridkin (lexfrei),
Timofei Larkin (lllamnyp) and
Kirill Ilin (sircthulhu)
as code owners
May 6, 2026 05:30
Contributor
|
Duplicate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backport of #2572 to
release-1.2.