Skip to content

Create releases with the scoped contents token - #359

Merged
ondrejmirtes merged 1 commit into
2.6.xfrom
fix-release-token
Dec 3, 2026
Merged

ondrejmirtes merged 1 commit into
2.6.xfrom
fix-release-token

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

The 2.6.1 tag did not get a GitHub release: the changelog step failed with "Parameter token or opts.auth is required" because PHPSTAN_BOT_TOKEN is no longer available here.

This switches release.yml to the tokens the extensions already use: github.token for the changelog and PHPSTAN_BOT_CONTENTS_TOKEN for creating the release, so the release event still triggers the tweet and toot workflows.

Amp thread: https://ampcode.com/threads/T-01a23cc3-0490-7181-9065-13f0ab41c8b5

run: 'gh release create "$TAG" --verify-tag --title "$TAG" --notes "$CHANGELOG"'
env:
GH_TOKEN: ${{ secrets.PHPSTAN_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.PHPSTAN_BOT_CONTENTS_TOKEN }}
@ondrejmirtes
ondrejmirtes merged commit 30377f5 into 2.6.x Dec 3, 2026
64 of 67 checks passed
@ondrejmirtes
ondrejmirtes deleted the fix-release-token branch December 3, 2026 17:39
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