Skip to content

Commit

Permalink
Add renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Dec 18, 2024
1 parent 024e999 commit 2c24d93
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/validate-renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: validate renovate.json5

on:
pull_request:

env:
LOG_LEVEL: debug

jobs:
renovate-config-validator:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: 20

- run: npx -p renovate renovate-config-validator renovate.json5
67 changes: 67 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
extends: [
'config:best-practices',
':rebaseStalePrs',
'customManagers:dockerfileVersions',
],
packageRules: [
{
matchUpdateTypes: [
'minor',
'patch',
'digest',
],
groupName: 'all non-major dependencies',
schedule: [
'after 10pm on Friday',
],
matchPackageNames: [
'*',
],
},
{
matchManagers: [
'gomod',
],
postUpdateOptions: [
'gomodTidy',
],
groupName: 'gomod updates',
},
{
matchManagers: [
'dockerfile',
],
groupName: 'Dockerfile updates',
},
{
matchManagers: [
'github-actions',
],
groupName: 'GitHub Actions updates',
schedule: [
'after 10pm on Friday',
],
},
{
matchUpdateTypes: [
'major',
],
groupName: 'all major updates',
schedule: [
'after 10pm on the first day of the month',
],
matchPackageNames: [
'*',
],
},
],
labels: [
'dependencies',
],
osvVulnerabilityAlerts: true,
dependencyDashboardOSVVulnerabilitySummary: 'unresolved',
vulnerabilityAlerts: {
enabled: true,
},
}

0 comments on commit 2c24d93

Please sign in to comment.