Skip to content

Replace PHPSTAN_BOT_TOKEN with scoped tokens - #360

Merged
ondrejmirtes merged 1 commit into
2.6.xfrom
bot-tokens
Dec 3, 2026
Merged

ondrejmirtes merged 1 commit into
2.6.xfrom
bot-tokens

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

Finishes moving phpdoc-parser off PHPSTAN_BOT_TOKEN, after #359 did it for release.yml. Publishing 2.6.1 ran send-pr.yml, which failed with "Input required and not supplied: token", so phpstan-src never got the phpdoc-parser bump.

  • send-pr.yml now runs in the bot-pr environment with PHPSTAN_BOT_PULL_REQUESTS_TOKEN, the same as php-8-stubs.
  • merge-maintained-branch.yml now runs in the push environment. It mints a phpstan-push App token and merges with git, the same as phpstan-src, instead of everlytic/branch-merge with the bot token. It only triggers on 1.22.x pushes, so this copy is the template for the next maintained branch.
  • .github/zizmor.yml now allows the release secrets that are actually used outside environments (PHPSTAN_BOT_CONTENTS_TOKEN, RELEASE_DISPATCH_TOKEN) instead of PHPSTAN_BOT_TOKEN.

actionlint 1.7.12 and zizmor@1.32.0 --persona=auditor both pass locally with no findings.

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


- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # zizmor: ignore[artipacked] -- the persisted App token credentials push the merge below
@ondrejmirtes
ondrejmirtes merged commit 8b5f56f into 2.6.x Dec 3, 2026
64 of 67 checks passed
@ondrejmirtes
ondrejmirtes deleted the bot-tokens branch December 3, 2026 17:43
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