Unclear instructions for Google Artifact Registry login using Workload Identity #29618
-
What would you like help with?I would like help with my configuration How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitHub, version 40.1.12 Please tell us more about your question or problemI read the docs, which state:
Following that, here's how I am running renovate:
this fails with:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Please read the section on environment variables at https://github.com/renovatebot/github-action |
Beta Was this translation helpful? Give feedback.
-
Got this working. Full job: jobs:
renovate:
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: 'Google auth'
id: google_auth
uses: 'google-github-actions/auth@v2'
with:
project_id: '${{ env.PROJECT_ID }}'
service_account: '${{ env.SERVICE_ACCOUNT }}'
workload_identity_provider: '${{ env.WORKLOAD_IDENTITY_PROVIDER }}'
token_format: "access_token"
- name: Self-hosted Renovate
uses: renovatebot/[email protected]
with:
configurationFile: .github/renovate.json
token: ${{ secrets.RENOVATE_TOKEN }}
env:
LOG_LEVEL: 'debug'
RENOVATE_HOST_RULES: '[{"matchHost":"us-central1-docker.pkg.dev","username":"oauth2accesstoken","password":"${{ steps.google_auth.outputs.access_token }}"}]' make sure that the service account being used has the |
Beta Was this translation helpful? Give feedback.
Got this working. Full job: