Authenticate PyPi datasource with Google Artifact Registry using GCloud SDK credentials #30109
Closed
maxbrunet
started this conversation in
Suggest an Idea
Replies: 1 comment
-
PR #31262 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tell us more.
The
docker
andmaven
datasources already support it, thegetGoogleAuthToken
function can be re-used:renovate/lib/modules/datasource/util.ts
Line 15 in ceec2bc
The token should be passed to these 2 HTTP calls when the host ends with
.pkg.dev
:renovate/lib/modules/datasource/pypi/index.ts
Line 99 in ceec2bc
renovate/lib/modules/datasource/pypi/index.ts
Line 247 in ceec2bc
An example of how the Python keyring uses it:
1589e75
/keyrings/gauth.py#L391589e75
/keyrings/gauth.py#L69Official documentation: https://cloud.google.com/artifact-registry/docs/python/authentication
Beta Was this translation helpful? Give feedback.
All reactions