Repository navigation
Replace PHPSTAN_BOT_TOKEN with scoped tokens - #7248
Merged
Merged
Conversation
- comments and closing issues: PHPSTAN_BOT_ISSUES_TOKEN - repository_dispatch and the turbo-ext release: PHPSTAN_BOT_CONTENTS_TOKEN - opening and merging bot PRs: PHPSTAN_BOT_PULL_REQUESTS_TOKEN from the bot-pr environment; merge-bot-pr.yml runs on pull_request_target so the base branch can deploy to it - Claude dispatches into the phpstan-bot fork: PHPSTAN_BOT_FORK_DISPATCH_TOKEN - pushes to protected branches (phar.yml dist commit, subsplit, merge-maintained-branch): a phpstan-push App token minted from the push environment; commits stay authored and signed by phpstan-bot Amp-Thread-ID: https://ampcode.com/threads/T-01a22152-db15-752f-a0d3-582d55ae32cb
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.
PHPSTAN_BOT_TOKENis revoked. Everything visible still acts as phpstan-bot through its fine-grained tokens; only pushes to protected branches move to the phpstan-push App, which replaces thebotsteam on the Protect all branches ruleset.PHPSTAN_BOT_ISSUES_TOKEN(org secret)PHPSTAN_BOT_CONTENTS_TOKEN(org secret)PHPSTAN_BOT_PULL_REQUESTS_TOKEN(bot-prenvironment)pull_request_target, no checkout), update-phpstorm-stubsPHPSTAN_BOT_FORK_DISPATCH_TOKEN(org secret)PUSH_APP_CLIENT_ID/PUSH_APP_PRIVATE_KEY(pushenvironment)Environments (
deployment: false, no reviewer):push: branches2.*.x, tags2.*.*. Also moveGPG_PHPSTANBOT_PRIVATE_KEY/GPG_PHPSTANBOT_KEY_PASSPHRASEhere.bot-pr: branches2.*.x.Merge after the App, environments and secrets exist, the
botsteam is off the ruleset, and phpstan-bot has Write here and on phpstan/phpstan.