mirror of
https://github.com/enix/x509-certificate-exporter.git
synced 2026-08-19 03:56:21 +00:00
ci(renovate): use the workflow token for github
This commit is contained in:
@@ -140,12 +140,28 @@ jobs:
|
||||
# Docker Hub account (and 5000+/day with paid). hostRules with
|
||||
# matchHost: "index.docker.io" wires this in for Renovate.
|
||||
# https://docs.renovatebot.com/configuration-options/#hostrules
|
||||
# Two hostRules:
|
||||
# - index.docker.io: see comment block above; opt-out of the
|
||||
# anonymous 100/6h pull rate limit.
|
||||
# - github.com: explicit override so digest lookups for
|
||||
# cross-org actions (dagger/, sigstore/, renovatebot/,
|
||||
# ossf/, …) authenticate via the workflow's GITHUB_TOKEN
|
||||
# instead of the App-installation token, which is scoped
|
||||
# to enix/x509-certificate-exporter and is unreliable on
|
||||
# cross-org git/refs reads (Renovate logs them as
|
||||
# "Could not determine new digest for update"). The
|
||||
# platform token used to push branches and open PRs
|
||||
# stays the App token (set via the `token:` input below).
|
||||
RENOVATE_HOST_RULES: |
|
||||
[
|
||||
{
|
||||
"matchHost": "index.docker.io",
|
||||
"username": "${{ secrets.DOCKERHUB_READONLY_USERNAME }}",
|
||||
"password": "${{ secrets.DOCKERHUB_READONLY_TOKEN }}"
|
||||
},
|
||||
{
|
||||
"matchHost": "github.com",
|
||||
"token": "${{ github.token }}"
|
||||
}
|
||||
]
|
||||
# Dry run only when explicitly requested via workflow_dispatch.
|
||||
|
||||
Reference in New Issue
Block a user