Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
// Use Renovate's recommended baseline (PR limits, grouping, etc.)
extends: ["config:recommended"],

// Commit author
gitAuthor: "eclipse-score-bot <score-bot@eclipse.org>",

// Target following repositories
repositories: [
"eclipse-score/bazel_cpp_toolchains",
"eclipse-score/devcontainer",
"eclipse-score/docs-as-code",
"eclipse-score/itf",
"eclipse-score/os_images",
"eclipse-score/qnx_unit_tests",
"eclipse-score/rules_imagefs",
"eclipse-score/testing_tools",
"eclipse-score/toolchains_rust",
],

// 🚨 Run experiment
prBodyNotes: [
"🚨 **EXPERIMENTAL** 🚨",
"This Renovate setup is currently under testing. ",
"It should produce good PRs, but there may be some issues. ",
"Contact #infrastructure if you have any questions or feedback.",
],

// Add labels to all PRs, so we can actually find them
labels: [
"automation",
"renovate",
],

// Run on all repos, without requiring local renovate.json
onboarding: false,
requireConfig: "ignored",

// Limit PRs to 10 at a time, to avoid overwhelming maintainers
prConcurrentLimit: 10,

// Override default weekly schedule from config:recommended so Renovate
// runs every time the workflow triggers.
schedule: ["at any time"],

// ---- BAZEL -----

// For now, only update Bazel module dependencies
enabledManagers: ["bazel-module"],

// Allow bazel lockfile updates via `bazel mod deps --lockfile_mode=update`
allowedUnsafeExecutions: ["bazelModDeps"],

// Update score packages only
packageRules: [
{
// By default bazel is enabled, but it shall update only score packages,
// so disable all bazel module updates first.
matchManagers: ["bazel-module"],
enabled: false
},
{
// And then re-enable only modules whose package name starts with "score_"
matchManagers: ["bazel-module"],
matchPackageNames: ["/^score_/"],
enabled: true,
},
{
// score_tooling >1.1.0 up to and including 1.2.0 is broken with no fix
// available. Block updates beyond 1.1.0 until a fixed version is released.
matchManagers: ["bazel-module"],
matchPackageNames: ["score_tooling"],
allowedVersions: "<=1.1.0",
}
],
}
15 changes: 15 additions & 0 deletions .github/workflows/_local_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,18 @@ jobs:
pull-requests: write
pages: write
id-token: write
renovate:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout config file
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Run renovate
uses: renovatebot/github-action@79dc0ba74dc3de28db0a7aeb1d0b95d5bf5fde2a # v46.1.13
with:
token: ${{ secrets.SCORE_BOT_CLASSIC_PAT }}
configurationFile: .github/renovate.json5
env:
LOG_LEVEL: debug
Loading