Skip to content

Commit 045fbf5

Browse files
authored
fix: add secret in publish-release-worker (#1797)
Add secret in publish-release-worker job. This is to fix this [error](https://pantheon.corp.google.com/cloud-build/builds;region=global/2b272e37-9895-4d51-8203-60aed2040255?invt=Ab6K1g&orgonly=true&project=cloud-sdk-librarian-prod&supportedpurview=organizationId) ``` 2025/08/21 19:29:44 GET https://api.github.com/repos/googleapis/google-cloud-python/pulls?per_page=100&state=closed: 401 Bad credentials [] --   | 2025/08/21 19:29:44 ERROR Error running command err="GET https://api.github.com/repos/googleapis/google-cloud-python/pulls?per_page=100&state=closed: 401 Bad credentials []"   | 2025/08/21 19:29:44 ERROR Error finding merged pull requests for publish-release err="GET https://api.github.com/repos/googleapis/google-cloud-python/pulls?per_page=100&state=closed: 401 Bad credentials []" repository=google-cloud-python ```
1 parent f0edfd6 commit 045fbf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

infra/prod/publish-release-worker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@ steps:
2525
- '--command=publish-release'
2626
tags: ['publish-release-dispatcher']
2727
availableSecrets:
28+
secretManager:
29+
- versionName: projects/$PROJECT_ID/secrets/$_GITHUB_TOKEN_SECRET_NAME/versions/latest
30+
env: 'LIBRARIAN_GITHUB_TOKEN'
2831
options:
2932
logging: CLOUD_LOGGING_ONLY

0 commit comments

Comments
 (0)