[GOG-1931] Add repo-scoped hostRule for ci-kubed github-releases lookup - #121
Merged
Conversation
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).
fdpeiter
approved these changes
Jul 21, 2026
This was referenced Jul 23, 2026
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>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renovate can't resolve release info for
powerhome/ci-kubedin this repo's Jenkinsfile pin (library 'github.com/powerhome/ci-kubed@...'). The job log shows:Root cause:
keessis a public repo, so Mend issues its Renovate job a GitHub App token scoped only tokeessitself, not the rest of thepowerhomeorg. That token has no visibility into the privateci-kubedrepo, so thegithub-releasesGraphQL lookup fails. (powerhome/example-rails-app, which also depends onci-kubed, works fine because it's private and gets a broader-scoped token.) There's nothing wrong withci-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
hostRulesentry sogithub-releaseslookups forpowerhome/ci-kubeduse a narrowly-scoped token instead of the (insufficient) default keess job token.Before this can take effect
powerhome/ci-kubed, permissionContents: readkeessnamedCI_KUBED_READ_TOKEN(Mend portal → repo settings → Credentials — Mend cannot read GitHub Actions secrets)ci-kubed's release notes are safe to surface in a publickeessPR body, since Renovate may include them once this worksSee GOG-1931 for full findings and discussion.
Test plan
CI_KUBED_READ_TOKENsecret is added, trigger a Renovate run from the dependency dashboard issue (Dependency Dashboard #42) and confirm theci-kubedlookup succeeds (should proposev10.1.0→v10.4.0) with no "Package lookup failures" warning