Skip to content

Commit a6a7941

Browse files
authored
chore(ci): fix permission for update_librarian_googleapis workflow (#13298)
Prevent the checkout step from saving the read-only default GITHUB_TOKEN on the runner. This should let "Commit and Create PR" step to use CLOUD_JAVA_BOT_GITHUB_TOKEN explicitly listed. Because the checkout step didn't save any credentials, Git has no cached headers to override the URL. This is in attempt to fix permission denied failure at Create PR step in this workflow, see [full log](https://github.com/googleapis/google-cloud-java/actions/runs/26617952296/job/78437554735). For googleapis/librarian#5435
1 parent 056abb6 commit a6a7941

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/update_librarian_googleapis.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
repository: googleapis/google-cloud-java
3434
path: google-cloud-java
3535
fetch-depth: 0
36+
persist-credentials: false
3637
- name: Check for Open PR
3738
env:
3839
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)