Skip to content

Commit c2c8be9

Browse files
authored
ci: Use PAT for external contributor PR (#13888)
I noticed multiple times, e.g. #13883, that the external contributor PRs do not trigger CI automatically. I think this is because stuff that is triggered by GITHUB_TOKEN does not trigger CI. So I am updating this to use the repo scoped token instead, let's see if that works.
1 parent 21a01f8 commit c2c8be9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/external-contributors.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- name: Create PR with changes
3939
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c
4040
with:
41+
# This token is scoped to Daniel Griesser
42+
# If we used the default GITHUB_TOKEN, the resulting PR would not trigger CI :(
43+
token: ${{ secrets.REPO_SCOPED_TOKEN }}
4144
commit-message: "ref: Add external contributor to CHANGELOG.md"
4245
title: "ref: Add external contributor to CHANGELOG.md"
4346
branch: 'external-contributor/patch-${{ github.event.pull_request.user.login }}'

0 commit comments

Comments
 (0)