Skip to content

Commit dd3788a

Browse files
chore: modify _update-self-references workflow to use a PAT (#54)
1 parent 839e85c commit dd3788a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/_update-self-references.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# This workflow uses a Personal Access Token instead of built-in GITHUB_TOKEN to create the pull request
2+
# This is necessary because it commits changes to workflow files, which is not allowed with the default GITHUB_TOKEN.
3+
# See example https://github.com/peter-evans/create-pull-request/issues/3558
4+
# The PAT needs to have `contents: write` `pull-requests: write` and `workflows: write` permissions.
5+
16
name: Update Self-References
27

38
on:
@@ -36,6 +41,7 @@ jobs:
3641
- name: Create Pull Request
3742
uses: peter-evans/create-pull-request@v7
3843
with:
44+
token: ${{ secrets.EXERCISE_TOOLKIT_TOKEN }}
3945
commit-message: "chore: update exercise-toolkit self-references to latest commit"
4046
title: "chore: update exercise-toolkit self-references to latest commit"
4147
body: |
@@ -50,8 +56,5 @@ jobs:
5056
add-paths: |
5157
.github/workflows/*.yml
5258
draft: false
53-
reviewers: |
54-
FidelusAleksander
5559
labels: |
5660
skip-release-notes
57-
maintenance

0 commit comments

Comments
 (0)