-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -293,29 +293,29 @@ Renovate will automatically retrieve the credentials using the google-auth-libra | |
Below you find the example configuration for both Workload Identity and the Renovate Host rules. For a full GitHub Workflow example see [renovatebot/github-action](https://github.com/renovatebot/github-action) repo. | ||
|
||
```yaml | ||
- name: authenticate to google cloud | ||
id: auth | ||
uses: google-github-actions/[email protected] | ||
with: | ||
token_format: "access_token" | ||
workload_identity_provider: ${{ env.WORKLOAD_IDENTITY_PROVIDER }} | ||
service_account: ${{ env.SERVICE_ACCOUNT }} | ||
|
||
- name: renovate | ||
uses: renovatebot/[email protected] | ||
env: | ||
RENOVATE_HOST_RULES: | | ||
[ | ||
{ | ||
matchHost: "us-central1-docker.pkg.dev", | ||
hostType: "docker", | ||
username: "oauth2accesstoken", | ||
password: "${{ steps.auth.outputs.access_token }}" | ||
} | ||
] | ||
with: | ||
token: ${{ secrets.RENOVATE_TOKEN }} | ||
configurationFile: .github/renovate.json5 | ||
- name: authenticate to google cloud | ||
id: auth | ||
uses: google-github-actions/[email protected] | ||
with: | ||
token_format: 'access_token' | ||
workload_identity_provider: ${{ env.WORKLOAD_IDENTITY_PROVIDER }} | ||
service_account: ${{ env.SERVICE_ACCOUNT }} | ||
|
||
- name: renovate | ||
uses: renovatebot/[email protected] | ||
env: | ||
RENOVATE_HOST_RULES: | | ||
[ | ||
{ | ||
matchHost: "us-central1-docker.pkg.dev", | ||
hostType: "docker", | ||
username: "oauth2accesstoken", | ||
password: "${{ steps.auth.outputs.access_token }}" | ||
} | ||
] | ||
with: | ||
token: ${{ secrets.RENOVATE_TOKEN }} | ||
configurationFile: .github/renovate.json5 | ||
``` | ||
##### Using long-lived service account credentials | ||
|