Skip to content

Commit

Permalink
Let renovate automatically update the SECURITY-INSIGHTS.yml file when…
Browse files Browse the repository at this point in the history
… there is a new release (#1320)

Signed-off-by: Jirka Kremser <jiri.kremser@gmail.com>
  • Loading branch information
jkremser authored Nov 1, 2023
1 parent 4378b02 commit f3faefd
Showing 1 changed file with 38 additions and 10 deletions.
48 changes: 38 additions & 10 deletions renovate.json → renovate.json5
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:base",
"group:allNonMajor",
],
"ignoreDeps": [
"infobloxopen/infoblox-go-client",
"zricethezav/gitleaks-action",
"actions/setup-go",
],
"ignorePaths": [
".github/workflows/release.yaml",
".github/workflows/cut_release.yaml"
".github/workflows/cut_release.yaml",
],
"labels": ["dependencies", "renovate"],
"prConcurrentLimit": 5,
"packageRules": [
{
"matchDatasources": [
"go"
"go",
],
"groupName": "kubernetes packages",
"groupSlug": "kubernetes-go",
Expand All @@ -28,7 +35,7 @@
"k8s.io/component-base",
"k8s.io/controller-manager",
"k8s.io/cri-api",
"k8s.io/csi-translation-lib",
"k8s.io/csi-translation-lib",
"k8s.io/kube-aggregator",
"k8s.io/kube-controller-manager",
"k8s.io/kube-proxy",
Expand All @@ -41,23 +48,44 @@
"k8s.io/pod-security-admission",
"k8s.io/sample-apiserver",
"k8s.io/sample-cli-plugin",
"k8s.io/sample-controller"
"k8s.io/sample-controller",
]
}, {
"matchPackagePatterns": [
"*"
"*",
],
"matchUpdateTypes": [
"minor",
"patch"
"patch",
],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch"
}, {
"matchDepTypes": [
"action"
"action",
],
"pinDigests": true
}
]
},
],
"regexManagers": [
{
"fileMatch": ["^SECURITY-INSIGHTS.yml$"],
"datasourceTemplate": "github-releases",
"depNameTemplate": "k8gb-io/k8gb",
"extractVersionTemplate": "^v?(?<version>.*)$",
"matchStrings": [
"\\s*project-release: ['\"]?v?(?<currentValue>.+)['\"]?",
],
},
{
"fileMatch": ["^SECURITY-INSIGHTS.yml$"],
"datasourceTemplate": "github-releases",
"depNameTemplate": "k8gb-io/k8gb",
"extractVersionTemplate": "^v?(?<version>.*)$",
"matchStrings": [
"\\s*- sbom-file: ['\"](.+)\\/download\\/v(?<currentValue>.+)\\/(.+)",
],
"autoReplaceStringTemplate": " - sbom-file: https://github.com/{{{depName}}}/releases/download/v{{{newValue}}}/k8gb_{{{newValue}}}_linux_amd64.tar.gz.sbom.json"
},
],
}

0 comments on commit f3faefd

Please sign in to comment.