Skip to content

Commit e78d079

Browse files
authored
Merge pull request #2085 from guardian/akash1810-patch-1
cd: Use the `guardian-ci` user to author automatic PRs
2 parents 5dea19a + 21dd736 commit e78d079

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/cd.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ jobs:
4343
commit: "Bump package version"
4444

4545
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
# This action will raise a PR to edit package.json and package-lock.json.
47+
# PRs raised by the default `secrets.GITHUB_TOKEN` will not trigger CI, so we need to provide a different token.
48+
# This is a PAT for the guardian-ci user.
49+
# See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token
50+
GITHUB_TOKEN: ${{ secrets.GU_GUARDIAN_CI_TOKEN }}
4751
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4852

4953
- name: Release docs

0 commit comments

Comments
 (0)