mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-04 22:26:11 +02:00
The pre-commit/action@v3 used actions/cache@v4 internally, which the repository's security policy forbids because it is not SHA-pinned. Remove the pre-commit dependency entirely by: * deleting .pre-commit-config.yaml * replacing the pre-commit CI step with a new scripts/file-hygiene.sh that implements the equivalent checks (trailing whitespace, EOF newline, BOM, CR, merge markers, large files, case collisions, broken symlinks, shebang/executable consistency, submodule ban) * removing the pre-commit Makefile targets and adding a file-hygiene target * removing pre-commit from the renovate configuration Markdown linting is already handled by the dedicated markdownlint step in the lint workflow, so no replacement is needed for that hook.
57 lines
1.9 KiB
JavaScript
57 lines
1.9 KiB
JavaScript
"use strict";
|
|
// https://github.com/renovatebot/github-action/blob/main/.github/renovate.json
|
|
// https://docs.renovatebot.com/configuration-options/
|
|
|
|
module.exports = {
|
|
"extends": [":disableRateLimiting", ":semanticCommits"],
|
|
"assigneesFromCodeOwners": true,
|
|
"gitAuthor": "Renovate Bot <bot@external-dns.com>",
|
|
"onboarding": false,
|
|
"platform": "github",
|
|
"repositories": [
|
|
"kubernetes-sigs/external-dns"
|
|
],
|
|
"printConfig": false,
|
|
"prConcurrentLimit": 0,
|
|
"prHourlyLimit": 0,
|
|
"stabilityDays": 3,
|
|
"pruneStaleBranches": true,
|
|
"recreateClosed": true,
|
|
"dependencyDashboard": false,
|
|
"requireConfig": false,
|
|
"rebaseWhen": "behind-base-branch",
|
|
"baseBranches": ["master", "main"],
|
|
"recreateWhen": "always",
|
|
"semanticCommits": "enabled",
|
|
"labels": ["{{depType}}", "datasource::{{datasource}}", "type::{{updateType}}", "manager::{{manager}}"], // can be overridden per packageRule
|
|
"addLabels": ["renovate-bot"], // cannot be overridden, any packageRule config extends this
|
|
"packageRules": [
|
|
],
|
|
"enabledManagers": [ // supported managers https://docs.renovatebot.com/modules/manager/
|
|
"regex"
|
|
],
|
|
"customManagers": [ // https://docs.renovatebot.com/modules/manager/regex/
|
|
{
|
|
// to capture registry.k8s.io/external-dns/external-dns:<version> in *.md files
|
|
"customType": "regex",
|
|
"fileMatch": [
|
|
".*\\.md$"
|
|
],
|
|
"matchStrings": [
|
|
"(?<depName>registry.k8s.io\/external-dns\/external-dns):(?<currentValue>.*)"
|
|
],
|
|
"depNameTemplate": "kubernetes-sigs/external-dns",
|
|
"datasourceTemplate": "github-releases",
|
|
"versioningTemplate": "semver"
|
|
},
|
|
{
|
|
"customType": "regex",
|
|
"fileMatch": [".*"],
|
|
"matchStrings": [
|
|
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?_VERSION=(?<currentValue>.*)\\s"
|
|
],
|
|
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
|
|
},
|
|
]
|
|
};
|