From 81e6a6da692fb5f7ad9552c1bc00c6d7b4cdae22 Mon Sep 17 00:00:00 2001 From: Ubiratan Soares Date: Mon, 20 May 2024 20:03:11 +0200 Subject: [PATCH] Improves Renovate setup (#44) --- .github/renovate.json | 22 ++++++++++++++++------ quality/bash/bash-linter.sh | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index f561ecb..182a85f 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,9 +1,10 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - ":prHourlyLimit2", - "group:monorepos", - "workarounds:all" + "config:recommended", + "docker:pinDigests", + "helpers:pinGitHubActionDigests", + ":pinDevDependencies" ], "osvVulnerabilityAlerts": true, "dependencyDashboard": true, @@ -13,7 +14,16 @@ "automerge": false } ], - "enabledManagers": ["github-actions"], - "labels": ["dependencies", "github-actions"], - "github-actions": {} + "customManagers": [ + { + "customType": "regex", + "depNameTemplate": "shfmt", + "packageNameTemplate": "rmvdan/shfmt", + "datasourceTemplate": "docker", + "fileMatch": ["(^|/)bash-linter\\.sh$"], + "matchStrings": [ + "readonly\\s*shmft=\"mvdan/shfmt:v(?\\d+\\.\\d+(\\.\\d+)?)-alpine\"" + ] + } + ] } diff --git a/quality/bash/bash-linter.sh b/quality/bash/bash-linter.sh index 78d4a4e..bd9e440 100755 --- a/quality/bash/bash-linter.sh +++ b/quality/bash/bash-linter.sh @@ -7,7 +7,7 @@ set -eo pipefail # https://hub.docker.com/r/mvdan/shfmt/tags -readonly shmft="mvdan/shfmt:v3.8.0-alpine" +readonly shmft="mvdan/shfmt:v3.7.0-alpine" # https://hub.docker.com/r/koalaman/shellcheck-alpine/tags readonly shellcheck="koalaman/shellcheck-alpine:v0.10.0"