Skip to content

Commit 415f0fe

Browse files
authored
Merge pull request #2141 from camptocamp/revert-2140-ghci/audit/renovate/prod-2-10
Revert "Audit Cleanup Renovate configuration for version prod-2-10"
2 parents 9c04073 + 0280332 commit 415f0fe

2 files changed

Lines changed: 183 additions & 0 deletions

File tree

.github/renovate.json5

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
'extends': [
4+
'github>camptocamp/gs-renovate-config-preset:base.json5#1.4.3',
5+
'github>camptocamp/gs-renovate-config-preset:group.json5#1.4.3',
6+
'github>camptocamp/gs-renovate-config-preset:ci.json5#1.4.3',
7+
'github>camptocamp/gs-renovate-config-preset:preset.json5#1.4.3',
8+
'github>camptocamp/gs-renovate-config-preset:pre-commit.json5#1.4.3',
9+
'github>camptocamp/gs-renovate-config-preset:docker.json5#1.4.3',
10+
'github>camptocamp/gs-renovate-config-preset:json-schema.json5#1.4.3',
11+
'github>camptocamp/gs-renovate-config-preset:shellcheck.json5#1.4.3',
12+
'github>camptocamp/gs-renovate-config-preset:python.json5#1.4.3',
13+
'github>camptocamp/gs-renovate-config-preset:stabilization-branches.json5#1.4.3',
14+
'github>camptocamp/gs-renovate-config-preset:own.json5#1.4.3',
15+
'github>camptocamp/gs-renovate-config-preset:security.json5#1.4.3',
16+
],
17+
baseBranchPatterns: [
18+
'prod-2-10',
19+
'prod-2-7',
20+
'prod-2-7-advance',
21+
'prod-2-8',
22+
'prod-2-8-advance',
23+
'prod-2-9',
24+
'prod-2-9-advance',
25+
'prod-2-10',
26+
'prod-2-10-advance',
27+
],
28+
/** Packages published very recently are not pushed to stabilization branches for security reasons */
29+
minimumReleaseAge: '7 days',
30+
ignorePaths: ['CONST_create_template/**', 'docker-compose-lib.yaml', 'ci/**'],
31+
html: {
32+
managerFilePatterns: ['/\\.html?$/', '/\\.html?.mako$/'],
33+
},
34+
customManagers: [
35+
/** Manage jsdelivr */
36+
{
37+
matchStrings: ['cdn\\.jsdelivr\\.net/npm/(?<depName>[^@]+)@(?<currentValue>[^/]+)'],
38+
datasourceTemplate: 'npm',
39+
customType: 'regex',
40+
managerFilePatterns: ['/.*\\.html$/'],
41+
},
42+
],
43+
packageRules: [
44+
/** Docker images versioning */
45+
{
46+
matchDatasources: ['docker'],
47+
versioning: 'loose',
48+
},
49+
/** Parse Gdal Docker tag */
50+
{
51+
matchDatasources: ['docker'],
52+
versioning: 'regex:^(?<compatibility>.*)-(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$',
53+
matchDepNames: ['ghcr.io/osgeo/gdal'],
54+
},
55+
/** Parse Node Docker tag */
56+
{
57+
matchDatasources: ['docker'],
58+
versioning: 'regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)-(?<compatibility>.*)$',
59+
matchDepNames: ['node'],
60+
},
61+
/** Accept only on project managed files. */
62+
{
63+
matchBaseBranches: ['/^prod-.*/'],
64+
enabled: false,
65+
},
66+
{
67+
matchBaseBranches: ['/^prod-2-10.*/'],
68+
matchFileNames: [
69+
'ui/**',
70+
'custom/**',
71+
'.pre-commit-config.yaml',
72+
'.github/renovated.json5',
73+
'package.json',
74+
'geogirafe/**',
75+
],
76+
enabled: true,
77+
},
78+
{
79+
matchBaseBranches: ['/^prod-2-10.*/'],
80+
matchFileNames: ['.pre-commit-config.yaml'],
81+
matchDepNames: [
82+
'pre-commit/pre-commit-hooks',
83+
'pre-commit/mirrors-prettier',
84+
'PyCQA/autoflake',
85+
'PyCQA/isort',
86+
'psf/black',
87+
],
88+
enabled: false,
89+
},
90+
{
91+
matchUpdateTypes: ['major', 'minor'],
92+
matchDepNames: ['ngeo'],
93+
enabled: false,
94+
},
95+
{
96+
matchBaseBranches: ['/^prod-2-7.*/', '/^prod-2-8.*/', '/^prod-2-9.*/'],
97+
matchUpdateTypes: ['patch'],
98+
matchFileNames: [
99+
'ui/**',
100+
'custom/**',
101+
'.pre-commit-config.yaml',
102+
'.github/renovated.json5',
103+
'package.json',
104+
'geogirafe/**',
105+
],
106+
enabled: true,
107+
},
108+
{
109+
matchBaseBranches: ['/^prod-2-7.*/', '/^prod-2-8.*/', '/^prod-2-9.*/'],
110+
matchFileNames: ['.pre-commit-config.yaml'],
111+
matchDepNames: [
112+
'pre-commit/pre-commit-hooks',
113+
'pre-commit/mirrors-prettier',
114+
'PyCQA/autoflake',
115+
'PyCQA/isort',
116+
'psf/black',
117+
],
118+
enabled: false,
119+
},
120+
/** Disable upgrading the supported Python version */
121+
{
122+
matchFileNames: ['custom/pyproject.toml'],
123+
enabled: false,
124+
matchDepNames: ['python'],
125+
},
126+
{
127+
matchPackageNames: ['shellcheck-py/shellcheck-py'],
128+
versioning: 'regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)$',
129+
},
130+
/** Ungroup Gdal dependencies */
131+
{
132+
matchDepNames: ['ghcr.io/osgeo/gdal'],
133+
groupName: 'Gdal',
134+
},
135+
/** Don't update major version of bootstrap on ui/*.html files */
136+
{
137+
matchFileNames: ['ui/*.html'],
138+
matchUpdateTypes: ['major'],
139+
matchDepNames: ['bootstrap'],
140+
enabled: false,
141+
},
142+
/** Don't update major version on package.json */
143+
{
144+
matchFileNames: ['^package.json'],
145+
matchUpdateTypes: ['major'],
146+
enabled: false,
147+
},
148+
/** Make ngeo as loose, daily updates */
149+
{
150+
matchDepNames: ['ngeo'],
151+
groupName: 'Ngeo daily',
152+
versioning: 'loose',
153+
schedule: 'after 5am',
154+
minimumReleaseAge: '0',
155+
},
156+
/** Make GeoGirafe, daily updates */
157+
{
158+
matchDepNames: ['@geogirafe/.*', '@geoblocks/.*'],
159+
groupName: 'GeoGirafe daily',
160+
schedule: 'after 5am',
161+
minimumReleaseAge: '0',
162+
},
163+
/** Ignore geogirafe/CONST_scaffold/* files */
164+
{
165+
enabled: false,
166+
matchFileNames: ['geogirafe/CONST_scaffold/**'],
167+
},
168+
],
169+
}

SECURITY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported Until |
6+
| ----------------- | --------------- |
7+
| prod-2-7 | Best effort |
8+
| prod-2-7-advance | Best effort |
9+
| prod-2-8 | Best effort |
10+
| prod-2-8-advance | Best effort |
11+
| prod-2-9 | Best effort |
12+
| prod-2-9-advance | Best effort |
13+
| prod-2-10 | Best effort |
14+
| prod-2-10-advance | Best effort |

0 commit comments

Comments
 (0)