|
| 1 | +// Dependency Update Configuration |
| 2 | +// |
| 3 | +// See https://docs.renovatebot.com/configuration-options/ |
| 4 | +// See https://json5.org/ for JSON5 syntax |
| 5 | + |
| 6 | +// [!] While updating the Renovate config, test changes on your own fork. |
| 7 | +// 1. Modify the Renovate configuration, which is located in .github/renovate.json5 and push your changes to the default branch of your fork. |
| 8 | +// 2. Enable the Renovate GitHub app in your GitHub account. |
| 9 | +// Verify that Renovate is activated in the repository settings within the Renovate Dashboard. |
| 10 | +// To enable the dashboard set `dependencyDashboard` to true |
| 11 | +// 3. Trigger the Renovate app from the dashboard, or push a new commit to your fork’s default branch to re-trigger Renovate. |
| 12 | +// 4. Use the dashboard to initiate Renovate and create a PR on your fork, then check that the proposed PRs are modifying the correct parts. |
| 13 | +// 5. Once you’ve validated that the Renovate configuration works on your fork, submit a PR, |
| 14 | +// and include links in the description to share details about the testing you've conducted. |
| 15 | + |
| 16 | +{ |
| 17 | + $schema: "https://docs.renovatebot.com/renovate-schema.json", |
| 18 | + |
| 19 | + // regenerate lock weekly https://docs.renovatebot.com/configuration-options/#lockfilemaintenance |
| 20 | + lockFileMaintenance: { |
| 21 | + enabled: true, |
| 22 | + schedule: ["* * * * 0"], // weekly |
| 23 | + }, |
| 24 | + |
| 25 | + extends: ["config:base", ":gitSignOff", "helpers:pinGitHubActionDigests"], |
| 26 | + // https://docs.renovatebot.com/presets-default/#gitsignoff |
| 27 | + // https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigests |
| 28 | + |
| 29 | + // if necessary, add supported releases branches here |
| 30 | + // it is possible to enable/disable specific upgrades per branch with |
| 31 | + // `matchBaseBranches` in specific rule |
| 32 | + baseBranches: ["develop"], |
| 33 | + |
| 34 | + // https://docs.renovatebot.com/modules/manager/#disabling-managers |
| 35 | + pip_requirements: { |
| 36 | + // Prevent renovate from trying to update demo code |
| 37 | + enabled: false, |
| 38 | + managerFilePatterns: [ |
| 39 | + "lib/src/otx/backend/native/exporter/exportable_code/demo/requirements.txt", |
| 40 | + ], |
| 41 | + }, |
| 42 | + |
| 43 | + // Set limit to 5 |
| 44 | + ignorePresets: [":prHourlyLimit2"], |
| 45 | + prHourlyLimit: 5, |
| 46 | + |
| 47 | + packageRules: [ |
| 48 | + // Enable pinning for container images |
| 49 | + // https://docs.renovatebot.com/presets-docker/#dockerpindigests |
| 50 | + { |
| 51 | + enabled: true, |
| 52 | + matchDatasources: ["docker"], |
| 53 | + pinDigests: true, |
| 54 | + groupName: "Pin images", |
| 55 | + groupSlug: "pin-images", |
| 56 | + schedule: ["* * * * 0"], // weekly |
| 57 | + }, |
| 58 | + |
| 59 | + // Disable python base image upgrades, except patch and digital pinning |
| 60 | + { |
| 61 | + enabled: false, |
| 62 | + matchDatasources: ["docker"], |
| 63 | + matchPackageNames: ["python"], |
| 64 | + matchUpdateTypes: ["major", "minor"], |
| 65 | + }, |
| 66 | + |
| 67 | + // Disable node image upgrades, except patch and digital pinning |
| 68 | + { |
| 69 | + enabled: false, |
| 70 | + matchDatasources: ["docker"], |
| 71 | + matchPackageNames: ["node"], |
| 72 | + matchUpdateTypes: ["major", "minor"], |
| 73 | + }, |
| 74 | + |
| 75 | + // Disable eclipse-mosquitto image upgrades, except patch and digital pinning |
| 76 | + { |
| 77 | + enabled: false, |
| 78 | + matchDatasources: ["docker"], |
| 79 | + matchPackageNames: ["eclipse-mosquitto"], |
| 80 | + matchUpdateTypes: ["major", "minor"], |
| 81 | + }, |
| 82 | + |
| 83 | + // Disable emqx/mqttx-web image upgrades, except patch and digital pinning |
| 84 | + { |
| 85 | + enabled: false, |
| 86 | + matchDatasources: ["docker"], |
| 87 | + matchPackageNames: ["emqx/mqttx-web"], |
| 88 | + matchUpdateTypes: ["major", "minor"], |
| 89 | + }, |
| 90 | + |
| 91 | + // Disable nvidia/cuda image upgrades, except patch and digital pinning |
| 92 | + { |
| 93 | + enabled: false, |
| 94 | + matchDatasources: ["docker"], |
| 95 | + matchPackageNames: ["nvidia/cuda"], |
| 96 | + matchUpdateTypes: ["major", "minor"], |
| 97 | + }, |
| 98 | + |
| 99 | + // Disable pytorch/pytorch image upgrades, except patch and digital pinning |
| 100 | + { |
| 101 | + enabled: false, |
| 102 | + matchDatasources: ["docker"], |
| 103 | + matchPackageNames: ["pytorch/pytorch"], |
| 104 | + matchUpdateTypes: ["major", "minor"], |
| 105 | + }, |
| 106 | + |
| 107 | + // Disable non-security upgrades for pypi, npm and crate, except lock file update |
| 108 | + // node is upgraded manually |
| 109 | + { |
| 110 | + enabled: false, |
| 111 | + matchDatasources: ["pypi", "node-version", "crate", "npm"], |
| 112 | + }, |
| 113 | + |
| 114 | + // Python version in TOML is updated manually |
| 115 | + { |
| 116 | + enabled: false, |
| 117 | + matchDatasources: ["python-version"], |
| 118 | + matchDepTypes: ["requires-python"], |
| 119 | + matchDepNames: ["python"], |
| 120 | + }, |
| 121 | + |
| 122 | + // Disable upgrades for Dockerfile syntax (docker/dockerfile) |
| 123 | + { |
| 124 | + enabled: false, |
| 125 | + matchDatasources: ["docker"], |
| 126 | + matchDepNames: ["docker/dockerfile"], |
| 127 | + }, |
| 128 | + |
| 129 | + // Group GitHub Actions updates |
| 130 | + { |
| 131 | + enabled: true, |
| 132 | + separateMajorMinor: false, |
| 133 | + groupName: "GitHub Actions", |
| 134 | + matchManagers: ["github-actions"], |
| 135 | + matchPackagePatterns: ["*"], |
| 136 | + schedule: ["* * 1,15 * *"], // twice a month |
| 137 | + }, |
| 138 | + |
| 139 | + // uv version used in GitHub Actions is updated manually |
| 140 | + { |
| 141 | + enabled: false, |
| 142 | + matchDatasources: ["github-releases"], |
| 143 | + matchDepNames: ["astral-sh/uv"], |
| 144 | + matchDepTypes: ["uses-with"], |
| 145 | + }, |
| 146 | + |
| 147 | + // python version used in GitHub Actions is updated manually |
| 148 | + { |
| 149 | + enabled: false, |
| 150 | + matchDatasources: ["github-releases"], |
| 151 | + matchDepNames: ["python"], |
| 152 | + matchDepTypes: ["uses-with"], |
| 153 | + }, |
| 154 | + |
| 155 | + // Disable mcr.microsoft.com/playwright image upgrades, except digital pinning, |
| 156 | + { |
| 157 | + enabled: false, |
| 158 | + matchManagers: ["github-actions"], |
| 159 | + matchDepTypes: ["container"], |
| 160 | + matchDepNames: ["mcr.microsoft.com/playwright"], |
| 161 | + matchUpdateTypes: ["major", "minor", "patch"], |
| 162 | + }, |
| 163 | + ], |
| 164 | + |
| 165 | + // Enable security upgrades |
| 166 | + vulnerabilityAlerts: { |
| 167 | + enabled: true, |
| 168 | + }, |
| 169 | + osvVulnerabilityAlerts: true, |
| 170 | + dependencyDashboard: true, |
| 171 | +} |
0 commit comments