Skip to content

Replace PHPSTAN_BOT_TOKEN with scoped tokens - #351

Merged
ondrejmirtes merged 2 commits into
2.4.xfrom
bot-tokens
Nov 30, 2026
Merged

ondrejmirtes merged 2 commits into
2.4.xfrom
bot-tokens

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

PHPSTAN_BOT_TOKEN is revoked.

  • release.yml: the release is created as phpstan-bot with the PHPSTAN_BOT_CONTENTS_TOKEN org secret, so it still triggers send-pr.yml. The changelog generator reads with the workflow token.
  • send-pr.yml: the phpstan-src PR is opened as phpstan-bot with PHPSTAN_BOT_PULL_REQUESTS_TOKEN from a new bot-pr environment (deployment tags: *).
  • merge-maintained-branch.yml: the merge goes through a phpstan-push App token from a new push environment (deployment branches: *.*.x), since the target branch is protected.

Needs the environments, secrets and phpstan-bot Write here before merging.

@ondrejmirtes
ondrejmirtes merged commit b521cd8 into 2.4.x Nov 30, 2026
59 of 67 checks passed
@ondrejmirtes
ondrejmirtes deleted the bot-tokens branch November 30, 2026 17:49
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.

1 participant