Skip to content

Commit e0240ed

Browse files
chore: update permissions of autoconfig generation job (#3677)
Based on https://togithub.com/googleapis/google-cloud-java/pull/11498
1 parent 7692de4 commit e0240ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/generateAutoConfigs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
# log information required for manually triggering workflow and exit with error to block PR
2020
if: ${{ (github.event_name == 'workflow_dispatch') || startsWith(github.head_ref, 'renovate/main-gcp-libraries-bom.version') || startsWith(github.head_ref, 'dependabot/maven/com.google.cloud-libraries-bom') }}
2121
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
24+
pull-requests: write
2225
env:
2326
GITHUB_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
2427
steps:
@@ -148,7 +151,7 @@ jobs:
148151
git stash pop
149152
git add ./spring-cloud-previews
150153
git commit -m "chore: update starter modules in spring-cloud-previews"
151-
git push https://github.com/${{ github.event.inputs.forked_repo }}.git HEAD:${{ github.event.inputs.branch_name }}
154+
git push https://${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}@github.com/${{ github.event.inputs.forked_repo }}.git HEAD:${{ github.event.inputs.branch_name }}
152155
else
153156
git remote remove origin
154157
git remote add origin https://${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}@github.com/GoogleCloudPlatform/spring-cloud-gcp.git

0 commit comments

Comments
 (0)