Skip to content

Commit 8da4b02

Browse files
Merge pull request #175 from code42/renovate/INTEG-3242/add-renovate
INTEG-3242 - add renovate
2 parents ab98a94 + bcdc8f2 commit 8da4b02

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

.github/workflows/renovate.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Renovate
2+
3+
on:
4+
schedule:
5+
# Weekly on Sunday at 06:00 UTC
6+
- cron: '0 6 * * 0'
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: renovate
11+
cancel-in-progress: false
12+
13+
jobs:
14+
renovate:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Run Renovate
21+
uses: renovatebot/github-action@v46.1.17
22+
with:
23+
token: ${{ secrets.RENOVATE_TOKEN }}
24+
env:
25+
LOG_LEVEL: info

renovate.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"prHourlyLimit": 0,
4+
"osvVulnerabilityAlerts": true,
5+
"vulnerabilityAlerts": {
6+
"enabled": true
7+
},
8+
"packageRules": [
9+
{
10+
"enabled": false,
11+
"matchPackageNames": [
12+
"*"
13+
],
14+
"matchUpdateTypes": [
15+
"major"
16+
],
17+
"description": "Block major version updates globally"
18+
},
19+
{
20+
"description": "PR priority: major updates",
21+
"matchUpdateTypes": [
22+
"major"
23+
],
24+
"prPriority": 10
25+
},
26+
{
27+
"description": "PR priority: minor updates",
28+
"matchUpdateTypes": [
29+
"minor"
30+
],
31+
"prPriority": 5
32+
},
33+
{
34+
"description": "Group patch and minor updates into \"non-major dependencies\"",
35+
"matchUpdateTypes": [
36+
"patch",
37+
"minor"
38+
],
39+
"groupName": "non-major dependencies",
40+
"groupSlug": "non-major",
41+
"prPriority": 0
42+
}
43+
],
44+
"branchPrefix": "renovate/",
45+
"onboarding": false,
46+
"requireConfig": "required"
47+
}

0 commit comments

Comments
 (0)