feat: reusable Renovate workflow for org-wide self-hosted runs#3
Merged
Conversation
Adds .github/workflows/renovate.yml as a reusable workflow (on: workflow_call) so every plugwerk repo can run self-hosted Renovate through a single place instead of duplicating the 70-line trigger. Inputs: - logLevel (default 'info'): pass-through to RENOVATE_LOG_LEVEL - configurationFile (default '.github/renovate.json'): per-caller override if a repo keeps its config elsewhere Token model is single-repo: each caller's GITHUB_TOKEN is scoped to its own repo. The reusable workflow does not add cross-repo write access, so adopting it is no different in security posture from the original per-repo trigger. Concurrency keys on github.repository so two runs against the same repo serialize but different repos run in parallel. README updated with the consumer-stub example and override behavior note.
This was referenced May 9, 2026
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
Adds
.github/workflows/renovate.ymlas a reusable workflow so every plugwerk repo can trigger self-hosted Renovate through a single source of truth instead of copying the 70-line trigger into each repo.Pulls in scope what was originally DEFER in plugwerk/plugwerk#398 — turns out the concrete need showed up immediately: when adopting org-wide Renovate config in
examplesandwebsite, those repos have the same Mend-Hosted opacity issue that triggered the original self-hosted setup inplugwerk/plugwerk(#462). Three copies of the same workflow is the wrong answer; a reusable workflow plus 15-line stubs is the right one.Design
on: workflow_callwith two optional inputs:logLevel(defaultinfo) — passes through toRENOVATE_LOG_LEVELconfigurationFile(default.github/renovate.json) — for callers that keep their config elsewhereconcurrencykeyed on${{ github.repository }}-${{ github.ref }}so runs against the same repo serialize but different repos run in parallel.actions/checkout@v6,renovatebot/github-action@v46.1.13) — same pins as the existingplugwerk/plugwerk/.github/workflows/renovate.yml.permissionsare not declared in the reusable workflow — callers declare them on the job that uses this workflow, which is the GitHub-recommended pattern.Token model
Single-repo. The reusable workflow uses
${{ secrets.GITHUB_TOKEN }}, which in aworkflow_callresolves to the caller'sGITHUB_TOKEN, scoped to the caller's repo. No PAT, no GitHub App, no cross-repo write access. Adopting this workflow has the same security posture as the existing per-repo trigger.Consumer stub
Three follow-up PRs (in
plugwerk/plugwerk,plugwerk/examples,plugwerk/website) add this stub to each repo's.github/workflows/renovate.yml:In
plugwerk/plugwerkthe stub replaces the existing 76-line workflow; inexamplesandwebsiteit is brand new.What this PR does NOT do
Verification after merge
plugwerk/plugwerk,plugwerk/examples,plugwerk/websitecan then be opened and merged in any order.gh workflow run renovate.yml --repo <repo>and confirm the run appears in the Actions tab with the same log shape as the original.push/pull_requesttriggers — so there is no PR check to wait on here.Type of Change
AI Agent Disclosure