|
| 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: ["main"], |
| 33 | + |
| 34 | + enabledManagers: ["github-actions", "pep621", "custom.regex"], |
| 35 | + |
| 36 | + // Set limit to 10 |
| 37 | + ignorePresets: [":prHourlyLimit2"], |
| 38 | + prHourlyLimit: 10, |
| 39 | + |
| 40 | + packageRules: [ |
| 41 | + // weekly dependencies upgrades |
| 42 | + { |
| 43 | + enabled: true, |
| 44 | + matchManagers: ["pep621"], |
| 45 | + schedule: ["* * * * 0"], // weekly |
| 46 | + }, |
| 47 | + |
| 48 | + // Python version is upgraded manually |
| 49 | + { |
| 50 | + enabled: false, |
| 51 | + matchDatasources: ["python-version"], |
| 52 | + matchDepNames: ["python"], |
| 53 | + matchDepTypes: ["requires-python"], |
| 54 | + }, |
| 55 | + |
| 56 | + // disable open-clip-torch upgrades as |
| 57 | + // open-clip-torch throws error on v2.26.1 |
| 58 | + { |
| 59 | + enabled: false, |
| 60 | + matchDatasources: ["pypi"], |
| 61 | + matchDepNames: ["open-clip-torch"], |
| 62 | + matchDepTypes: ["project.optional-dependencies"], |
| 63 | + }, |
| 64 | + |
| 65 | + // Group GitHub Actions updates |
| 66 | + { |
| 67 | + enabled: true, |
| 68 | + separateMajorMinor: false, |
| 69 | + groupName: "GitHub Actions", |
| 70 | + matchManagers: ["github-actions"], |
| 71 | + matchPackagePatterns: ["*"], |
| 72 | + schedule: ["* * 1 * *"], // every month |
| 73 | + }, |
| 74 | + |
| 75 | + // Python version used in GitHub Actions is updated manually |
| 76 | + { |
| 77 | + enabled: false, |
| 78 | + matchDatasources: ["github-releases"], |
| 79 | + matchDepNames: ["python"], |
| 80 | + matchDepTypes: ["uses-with"], |
| 81 | + }, |
| 82 | + ], |
| 83 | + |
| 84 | + // is used to upgrade Zizmor version |
| 85 | + customManagers: [ |
| 86 | + { |
| 87 | + fileMatch: ["^\\.github/actions/security/zizmor/[^/]+\\.ya?ml$"], |
| 88 | + // https://docs.renovatebot.com/modules/manager/regex/#advanced-capture |
| 89 | + matchStrings: [ |
| 90 | + "# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+default: (?<currentValue>.*)", |
| 91 | + ], |
| 92 | + }, |
| 93 | + ], |
| 94 | + |
| 95 | + // Enable security upgrades |
| 96 | + vulnerabilityAlerts: { |
| 97 | + enabled: true, |
| 98 | + }, |
| 99 | + osvVulnerabilityAlerts: true, |
| 100 | + dependencyDashboard: true, |
| 101 | +} |
0 commit comments