-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add/update renovate configuration
- Loading branch information
1 parent
2531393
commit 309553e
Showing
1 changed file
with
3 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,8 @@ | ||
{ | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
extends: [ // default presets see https://docs.renovatebot.com/presets-default/ | ||
"config:recommended", | ||
"helpers:pinGitHubActionDigestsToSemver", | ||
"security:openssf-scorecard", | ||
":disableDependencyDashboard", | ||
":disableRateLimiting", | ||
extends: [ | ||
"github>wetransform/renovate-config/self-hosted.json5", | ||
"github>wetransform/renovate-config/gha.json5", | ||
"group:allNonMajor", | ||
":enableVulnerabilityAlertsWithLabel(security)", | ||
], | ||
labels: [ | ||
"renovate", | ||
"renovate/{{updateType}}", | ||
], | ||
ignorePaths: [ | ||
// Prevent running for terraform managed workflows | ||
".github/workflows/tf-*.yml", ".github/workflows/tf-*.yaml" | ||
], | ||
packageRules: [ | ||
{ | ||
description: "Update renovatebot/github-action minor/patch updates on Sundays", | ||
matchPackageNames: ["renovatebot/github-action"], | ||
matchUpdateTypes: ["minor", "patch"], | ||
schedule: ["* * * * 0"], | ||
}, | ||
/* GitHub actions specific rule */ | ||
{ | ||
description: "Update to action dependencies use fix commits to trigger a release", | ||
matchFileNames: ["action.yml"], | ||
// semanticCommitType: "fix", | ||
// extends: [":semanticCommitType(fix)"] | ||
extends: [":semanticCommitTypeAll(fix)"] | ||
}, | ||
], | ||
prBodyTemplate: "{{{table}}}{{{notes}}}{{{changelogs}}}", | ||
customManagers: [ | ||
{ | ||
description: "Update semantic-release in GitHub Action workflows", | ||
customType: "regex", | ||
fileMatch: ["(^workflow-templates|\\.github/(actions|workflows))\\/.+\\.ya?ml$"], | ||
matchStrings: [ | ||
"\ | ||
semantic_version\\s*:\\s*(\"|')?(?<currentValue>.+)(\"|')?\ | ||
(\\s+|\\s+.*)" | ||
], | ||
datasourceTemplate: "npm", | ||
depNameTemplate: "semantic-release" | ||
}, | ||
{ | ||
description: "Any other file with dependencies", | ||
customType: "regex", | ||
fileMatch: [ | ||
"(^workflow-templates|\\.github/workflows)/[^/]+\\.ya?ml$", | ||
], | ||
matchStrings: [ | ||
"\ | ||
.*renovate:\ | ||
\\sdatasource=(?<datasource>.*?)\ | ||
\\sdepName=(?<depName>.*?)\ | ||
(\\sversioning=(?<versioning>.*?))?\ | ||
\n.*(version|Version|VERSION)\\s*(:=|=|:)\\s*\"?(?<currentValue>.*?)\ | ||
(@(?<currentDigest>sha256:[a-f0-9]+))?\"?\ | ||
(\\s+|\\s+.*)" | ||
], | ||
versioningTemplate: "\ | ||
{{#if versioning}}\ | ||
{{{versioning}}}\ | ||
{{else}}\ | ||
semver-coerced\ | ||
{{/if}}" | ||
}, | ||
], | ||
separateMinorPatch: false, | ||
} |