Skip to content

Commit 6e4419e

Browse files
authored
chore: use CLOUD_JAVA_BOT_GITHUB_TOKEN in changelog_generation workflow (#14750)
Update `.github/workflows/changelog_generation.yaml` to use `CLOUD_JAVA_BOT_GITHUB_TOKEN` instead of `YOSHI_CODE_BOT_TOKEN` (which fails with a 403 permission error when pushing to `release-please--branches--main`). Note: This matches the existing configuration in [`create_additional_release_tag.yaml`](https://github.com/googleapis/google-cloud-java/blob/00f7bea135eb77de710e71c97ae5be3a2829886d/.github/workflows/create_additional_release_tag.yaml#L27-L47) and [`java-cloud-bom-update-readme-table.yaml`](https://github.com/googleapis/google-cloud-java/blob/00f7bea135eb77de710e71c97ae5be3a2829886d/.github/workflows/java-cloud-bom-update-readme-table.yaml#L50-L63). b/577072905
1 parent 5b2264a commit 6e4419e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/changelog_generation.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
git status
3636
- name: Fetching pull request body
3737
env:
38-
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
38+
GITHUB_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
3939
run: |
4040
echo "Running the changelog generation script. Fetching PR body..."
4141
gh pr view --json body --jq '.body' > pr_body.txt
@@ -46,9 +46,9 @@ jobs:
4646
python3 .github/release-note-generation/split_release_note.py pr_body.txt .
4747
- name: Commit the change and push to the pull request branch
4848
run: |
49-
git config user.email "yoshi-code-bot@users.noreply.github.com"
50-
git config user.name "yoshi-code-bot"
51-
git remote set-url origin https://x-access-token:${{ secrets.YOSHI_CODE_BOT_TOKEN }}@github.com/${{ github.repository }}
49+
git config user.email "cloud-java-bot@google.com"
50+
git config user.name "Cloud Java Bot"
51+
git remote set-url origin https://x-access-token:${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}@github.com/${{ github.repository }}
5252
git add ./*/CHANGELOG.md
5353
git commit -m 'chore: update CHANGELOG.md in modules'
5454
git push

0 commit comments

Comments
 (0)