Skip to content

Find, verify, and analyze leaked credentials

ci: let Renovate bump the golangci-lint pin in scripts/lint.sh (#5231)

Bryan Beverly1bc0db6b5c68
diff --git a/.github/renovate.json b/.github/renovate.json
index 395a8140f..8e955f8c7 100644
--- a/.github/renovate.json
+++ b/.github/renovate.json
@@ -1,4 +1,21 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
- "extends": ["github>trufflesecurity/.github:renovate-config#v1.0.4"]
-}
\ No newline at end of file
+ "extends": ["github>trufflesecurity/.github:renovate-config#v1.0.4"],
+ "customManagers": [
+ {
+ "description": "scripts/lint.sh pins the same golangci-lint version as .github/workflows/lint.yml",
+ "customType": "regex",
+ "managerFilePatterns": ["scripts/lint.sh"],
+ "matchStrings": ["GOLANGCI_LINT_VERSION=\"(?<currentValue>v[^\"]+)\""],
+ "depNameTemplate": "golangci/golangci-lint",
+ "datasourceTemplate": "github-releases"
+ }
+ ],
+ "packageRules": [
+ {
+ "description": "Keep the workflow and script golangci-lint pins in one PR",
+ "matchDepNames": ["golangci/golangci-lint"],
+ "groupName": "golangci-lint"
+ }
+ ]
+}