forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrenovate.json5
More file actions
123 lines (123 loc) · 4.08 KB
/
renovate.json5
File metadata and controls
123 lines (123 loc) · 4.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "helpers:pinGitHubActionDigests", "customManagers:githubActionsVersions"],
"configMigration": true,
"enabledManagers": ["github-actions", "gomod", "npm", "pep621", "nix", "custom.regex", "dockerfile"],
"labels": ["dependencies"],
"branchPrefix": "renovate/",
"schedule": ["* * * * 1"], // dependency update PRs weekly, vulnerabilityAlerts bypasses this
"minimumReleaseAge": "5 days",
"semanticCommits": "enabled",
"osvVulnerabilityAlerts": true,
"vulnerabilityAlerts": {
"enabled": true,
},
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["/(^|/)Makefile$/"],
"matchStrings": [
"[A-Z_]+_PACKAGE\\s*\\?=\\s*(?<depName>[^@\\s]+?)(?:/cmd/[^@/\\s]+)?@(?<currentValue>\\S+)\\s+# renovate: datasource=(?<datasource>\\S+)",
],
},
],
"packageRules": [
{
"groupName": "action dependencies",
"matchManagers": ["github-actions"],
},
{
"matchPackageNames": ["@mcaptcha/vanilla-glue"],
"allowedVersions": "^0.1", // breaking changes in rc versions need to be handled
},
{
"matchPackageNames": ["cropperjs"],
"allowedVersions": "^1", // need to migrate to v2 but v2 is not compatible with v1
},
{
"matchPackageNames": ["tailwindcss"],
"allowedVersions": "^3", // need to migrate
},
{
"matchPackageNames": ["github.com/urfave/cli/v3"],
"allowedVersions": "<3.6.2", // v3.6.2 breaks -c flag parsing in help commands
},
{
"matchPackageNames": ["github.com/dlclark/regexp2"],
"allowedVersions": "^1", // v2 fails to build on linux/386: https://github.com/dlclark/regexp2/issues/102
},
{
"matchPackageNames": ["github.com/Azure/azure-sdk-for-go/sdk/azcore"],
"allowedVersions": "<1.21.0", // v1.21.0+ uses API version unsupported by Azurite in CI
},
{
"matchPackageNames": ["github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"],
"allowedVersions": "<1.6.4", // v1.6.4+ uses API version unsupported by Azurite in CI
},
{
"matchPackageNames": ["github.com/microsoft/go-mssqldb"],
"allowedVersions": "<=1.9.7", // downgraded with Azure SDK
},
{
"matchPackageNames": ["go.yaml.in/yaml/v4"],
"allowedVersions": "<4.0.0-rc.4", // rc.4 changes block scalar serialization, wait for stable release
},
{
"matchPackageNames": ["postgres"],
"allowedVersions": "/^14($|[.-])/", // pin to oldest supported major
},
{
"matchPackageNames": ["bitnamilegacy/mysql"],
"allowedVersions": "/^8\\.4($|[.-])/", // pin to oldest LTS
},
{
"matchPackageNames": ["mcr.microsoft.com/mssql/server"],
"allowedVersions": "/^2019($|[.-])/", // pin to oldest in extended support
},
{
"groupName": "go dependencies",
"matchManagers": ["gomod"],
"postUpdateOptions": ["gomodUpdateImportPaths"],
"postUpgradeTasks": {
"commands": ["make tidy"],
"fileFilters": ["go.mod", "go.sum", "assets/go-licenses.json"],
"executionMode": "branch",
},
},
{
"groupName": "tool dependencies",
"matchManagers": ["custom.regex"],
"matchFileNames": ["**/Makefile"],
},
{
"matchManagers": ["gomod"],
"matchDepNames": ["go"],
"matchDepTypes": ["golang"],
"rangeStrategy": "bump",
"schedule": ["at any time"],
"minimumReleaseAge": "0",
},
{
"groupName": "npm dependencies",
"matchManagers": ["npm"],
"postUpdateOptions": ["pnpmDedupe"],
"postUpgradeTasks": {
"commands": ["make svg nolyfill"],
"fileFilters": ["package.json", "pnpm-lock.yaml", "pnpm-workspace.yaml", "public/assets/img/svg/**"],
"executionMode": "branch",
},
},
{
"groupName": "python dependencies",
"matchManagers": ["pep621"],
},
{
"groupName": "nix dependencies",
"matchManagers": ["nix"],
},
{
"groupName": "docker dependencies",
"matchManagers": ["dockerfile"],
},
],
}