Skip to content

Commit f5d54e9

Browse files
committed
Replace PHPSTAN_BOT_TOKEN with scoped tokens
1 parent 9b1c30a commit f5d54e9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
id: changelog
3535
uses: metcalfc/changelog-generator@bb7a08e07e326061351dab6ce89c72f13797043c # v4.9.1
3636
with:
37-
myToken: ${{ secrets.PHPSTAN_BOT_TOKEN }}
37+
myToken: ${{ github.token }}
3838

3939
- name: "Create release" # zizmor: ignore[superfluous-actions]
4040
uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
4141
with:
42-
token: ${{ secrets.PHPSTAN_BOT_TOKEN }}
42+
token: ${{ secrets.PHPSTAN_BOT_CONTENTS_TOKEN }}
4343
tag_name: ${{ github.ref_name }}
4444
name: ${{ github.ref_name }}
4545
body: ${{ steps.changelog.outputs.changelog }}

‎.github/zizmor.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ rules:
33
config:
44
# Repository-level secrets used by release automation; they are not scoped to deployment environments.
55
allow:
6-
- PHPSTAN_BOT_TOKEN
6+
- PHPSTAN_BOT_CONTENTS_TOKEN
7+
- RELEASE_DISPATCH_TOKEN
78
- MASTODON_ACCESS_TOKEN
89
- TWITTER_CONSUMER_API_KEY
910
- TWITTER_CONSUMER_API_SECRET

0 commit comments

Comments
 (0)