Skip to content

Replace PHPSTAN_BOT_TOKEN with scoped tokens - #351

Open
ondrejmirtes wants to merge 2 commits into
2.4.xfrom
bot-tokens
Open

ondrejmirtes wants to merge 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.

This branch has not been deployed

No deployments
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