Skip to content

[GOG-1931] Add repo-scoped hostRule for ci-kubed github-releases lookup - #121

Merged
fdpeiter merged 1 commit into
mainfrom
gog-1931-ci-kubed-renovate-hostrule
Jul 21, 2026
Merged

[GOG-1931] Add repo-scoped hostRule for ci-kubed github-releases lookup#121
fdpeiter merged 1 commit into
mainfrom
gog-1931-ci-kubed-renovate-hostrule

Conversation

@c-gerke

@c-gerke c-gerke commented Jul 21, 2026

Copy link
Copy Markdown
Member

Summary

Renovate can't resolve release info for powerhome/ci-kubed in this repo's Jenkinsfile pin (library 'github.com/powerhome/ci-kubed@...'). The job log shows:

"packageName":"powerhome/ci-kubed"
"err":{"message":"Could not resolve to a Repository with the name 'powerhome/ci-kubed'."}
"msg":"Datasource unknown error"

Root cause: keess is a public repo, so Mend issues its Renovate job a GitHub App token scoped only to keess itself, not the rest of the powerhome org. That token has no visibility into the private ci-kubed repo, so the github-releases GraphQL lookup fails. (powerhome/example-rails-app, which also depends on ci-kubed, works fine because it's private and gets a broader-scoped token.) There's nothing wrong with ci-kubed's settings or the GitHub App's org installation — this is Mend's documented per-repo token scoping for public repos.

This PR adds a repo-scoped hostRules entry so github-releases lookups for powerhome/ci-kubed use a narrowly-scoped token instead of the (insufficient) default keess job token.

Before this can take effect

  • Create a fine-grained GitHub PAT scoped only to powerhome/ci-kubed, permission Contents: read
  • Add it as a Mend-hosted repo secret for keess named CI_KUBED_READ_TOKEN (Mend portal → repo settings → Credentials — Mend cannot read GitHub Actions secrets)
  • Confirm ci-kubed's release notes are safe to surface in a public keess PR body, since Renovate may include them once this works

See GOG-1931 for full findings and discussion.

Test plan

  • After the CI_KUBED_READ_TOKEN secret is added, trigger a Renovate run from the dependency dashboard issue (Dependency Dashboard #42) and confirm the ci-kubed lookup succeeds (should propose v10.1.0v10.4.0) with no "Package lookup failures" warning

keess is a public repo, so Mend issues its Renovate job a GitHub App
token scoped only to keess itself, not the rest of the powerhome org.
That token can't see the private ci-kubed repo, so the github-releases
datasource lookup for the Jenkinsfile ci-kubed pin fails with
"Could not resolve to a Repository with the name 'powerhome/ci-kubed'".

Adds a repo-scoped hostRules entry pointing github-releases lookups for
ci-kubed at a narrowly-scoped PAT, stored as the CI_KUBED_READ_TOKEN
Mend secret (not yet created — see GOG-1931).
@c-gerke
c-gerke requested a review from a team as a code owner July 21, 2026 18:06
@c-gerke c-gerke changed the title GOG-1931: add repo-scoped hostRule for ci-kubed github-releases lookup [GOG-1931] Add repo-scoped hostRule for ci-kubed github-releases lookup Jul 21, 2026
@fdpeiter
fdpeiter merged commit 5bc2ee6 into main Jul 21, 2026
4 checks passed
@fdpeiter
fdpeiter deleted the gog-1931-ci-kubed-renovate-hostrule branch July 21, 2026 19:32
fdpeiter pushed a commit that referenced this pull request Jul 24, 2026
…122)

## Summary

PR #121 added a repo-scoped `hostRules` entry directly to keess's
renovate.json to fix `github-releases` lookups for the private
`powerhome/ci-kubed` repo (public repos get a Mend token scoped to
themselves only, so the lookup can't resolve `ci-kubed` without this).

That inline block is now available as a reusable preset in
`powerhome/renovate-config`: `ci-kubed-read-token` (<a
href="https://github.com/powerhome/renovate-config/pull/64">powerhome/renovate-config#64</a>).
This swaps the inline `hostRules` for the preset so other public repos
hitting the same issue (e.g. `playbook`) can reuse it instead of
copy-pasting the block.

No behavior change, same `hostRules` entry, same `CI_KUBED_READ_TOKEN`
Mend secret.

## Depends on

- [ ] <a
href="https://github.com/powerhome/renovate-config/pull/64">powerhome/renovate-config#64</a>
must merge first — the `ci-kubed-read-token` preset doesn't exist on
renovate-config's main branch yet, so this PR isn't mergeable until
then. Marking as draft for now.

## Context

<a
href="https://runway.powerhrg.com/backlog_items/GOG-1931">GOG-1931</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants