diff --git a/.github/workflows/lint-renovate.yaml b/.github/workflows/lint-renovate.yaml new file mode 100644 index 0000000..852f86d --- /dev/null +++ b/.github/workflows/lint-renovate.yaml @@ -0,0 +1,19 @@ +name: Lint renovate configuration + +on: + push: + branches: [master] + paths: + - .renovaterc + - ".github/workflows/lint-renovate.yaml" + pull_request: + paths: + - .renovaterc + - ".github/workflows/lint-renovate.yaml" +jobs: + validate: + runs-on: ubuntu-latest + timeout-minutes: 3 + steps: + - uses: actions/checkout@v4 + - uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.0.1 diff --git a/.renovaterc b/.renovaterc new file mode 100644 index 0000000..62e5730 --- /dev/null +++ b/.renovaterc @@ -0,0 +1,29 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + ":disableRateLimiting", + ":disableVulnerabilityAlerts" + ], + "labels": [ + "dependencies" + ], + "postUpdateOptions": [ + "gomodTidy", + "gomodUpdateImportPaths" + ], + "reviewersFromCodeOwners": true, + "enabledManagers": [ + "gomod", + "dockerfile", + "github-actions" + ], + "packageRules": [ + { + "matchDatasources": [ + "golang-version" + ], + "rangeStrategy": "bump" + } + ] +}