Add Renovate config (Gradle + Docker) + metadata regen workflow - #2
Merged
Merged
Conversation
Configure Renovate for dependency updates instead of Dependabot: monthly schedule, 2-day minimumReleaseAge, coherent-project grouping (keyed deep so unrelated org.apache.* projects stay separate), ecosystem labels, PR limit, and OSV vulnerability alerts. Because this repo enforces Gradle dependency verification and the metadata file cannot always be regenerated by the bot, add a split-privilege workflow that regenerates gradle/verification-metadata.xml on renovate/** branches: an untrusted build job with a read-only token and no secrets produces the file, and a separate trusted job that runs no dependency code commits it. This isolates the writable token from untrusted execution. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Jon Bartels <jonathan.bartels@gmail.com>
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 Renovate dependency automation to the repo, covering both the Gradle build and Dockerfiles.
renovate.jsonconfig:recommended.minimumReleaseAgeto avoid churny/yanked releases.prConcurrentLimit: 10, dependency dashboard enabled, semantic commits, OSV vulnerability alerts.dependencieson everything, plusjava(Gradle) /docker(Dockerfile).all-minor-and-patch); majors stay individual..github/workflows/renovate-verification-metadata.yamlFallback workflow that regenerates
gradle/verification-metadata.xmlonrenovate/**branches, in case the Mend-hosted Renovate app does not regenerate it itself (its command allowlist / PGP handling is unconfirmed for this repo).It uses a split-privilege design:
regenjob runs the newly-bumped (untrusted) dependency code with a read-only token and no secrets, then uploads the refreshed metadata as an artifact.commitjob runs no dependency code, downloads the artifact, and pushes it back with a writable token.This keeps a writable token from ever coexisting with untrusted code execution. Delete this workflow once Renovate is confirmed to regenerate the metadata (incl. PGP + full config coverage) on its own.
Manual steps to enable Renovate on this fork
Renovate config in the repo does nothing until the bot is installed. To turn it on for
jonbartels/oie-engine:jonbartels/oie-enginerepository (select "Only select repositories" → pick this repo, or "All repositories").renovate.jsonalready exists, it skips the "Configure Renovate" onboarding PR and starts using this config directly. (If no config were present, it would open an onboarding PR first.)schedule, Renovate only opens update PRs before 6am on the 1st of the month. To test sooner, either temporarily remove theschedulefield, or tick a checkbox on the Dependency Dashboard to force a PR.renovatebot/github-actionon a cron; the hosted app is simpler and is what this config assumes.No repository secrets are required for the hosted app. The verification-metadata workflow uses the default
GITHUB_TOKENonly (with per-job least-privilege scopes), so nothing extra to configure there.🤖 Generated with Claude Code