diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000000..1f291a257e2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,192 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +version: 2 +updates: + # 1. Core Toolbox Go module (group minor/patch CVEs; leave major bumps separate) + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + open-pull-requests-limit: 0 + labels: + - "type: process" + commit-message: + prefix: "fix" + include: "scope" + groups: + go-security: + applies-to: security-updates + update-types: + - "minor" + - "patch" + patterns: + - "*" + + # 2. Go Sample modules (single grouped PR across all Go samples under /docs) + - package-ecosystem: "gomod" + directories: + - "/docs/**/*" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + open-pull-requests-limit: 0 + labels: + - "type: process" + commit-message: + prefix: "chore" + include: "scope" + groups: + go-samples-security: + applies-to: security-updates + patterns: + - "*" + + # 3. Hugo Go modules + - package-ecosystem: "gomod" + directory: "/.hugo" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + open-pull-requests-limit: 0 + labels: + - "type: process" + commit-message: + prefix: "chore" + include: "scope" + groups: + hugo-go-security: + applies-to: security-updates + patterns: + - "*" + + # 4. JS Sample packages (single grouped PR across all JS samples under /docs) + - package-ecosystem: "npm" + directories: + - "/docs/**/*" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + open-pull-requests-limit: 0 + labels: + - "type: process" + commit-message: + prefix: "chore" + include: "scope" + groups: + js-samples-security: + applies-to: security-updates + patterns: + - "*" + + # 5. Hugo Node tooling + - package-ecosystem: "npm" + directory: "/.hugo" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + open-pull-requests-limit: 0 + labels: + - "type: process" + commit-message: + prefix: "chore" + include: "scope" + groups: + hugo-npm-security: + applies-to: security-updates + patterns: + - "*" + + # 6. Python Sample requirements (single grouped PR across all Python samples under /docs) + - package-ecosystem: "pip" + directories: + - "/docs/**/*" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + open-pull-requests-limit: 0 + labels: + - "type: process" + commit-message: + prefix: "chore" + include: "scope" + groups: + python-samples-security: + applies-to: security-updates + patterns: + - "*" + + # 7. PyPI wrapper package build metadata + - package-ecosystem: "pip" + directory: "/pypi" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + open-pull-requests-limit: 0 + labels: + - "type: process" + commit-message: + prefix: "chore" + include: "scope" + groups: + pypi-security: + applies-to: security-updates + patterns: + - "*" + + # 8. Container base images + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + open-pull-requests-limit: 0 + labels: + - "type: process" + commit-message: + prefix: "fix" + include: "scope" + groups: + docker-security: + applies-to: security-updates + patterns: + - "*" + + # 9. GitHub Actions workflows + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + open-pull-requests-limit: 0 + labels: + - "type: process" + commit-message: + prefix: "chore" + include: "scope" + groups: + github-actions-security: + applies-to: security-updates + patterns: + - "*" diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 7df2e380385..4dd29703692 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -10,9 +10,18 @@ ], minimumReleaseAge: '3 days', rebaseWhen: 'conflicted', + labels: [ + 'type: process', + ], dependencyDashboardLabels: [ 'type: process', ], + ignorePaths: [ + 'npm/**', + ], + vulnerabilityAlerts: { + enabled: false, + }, postUpdateOptions: [ 'gomodTidy', ], @@ -49,9 +58,9 @@ matchManagers: [ 'gomod', ], - ignorePaths: [ - 'docs/**', - '.hugo/**', + matchFileNames: [ + '!docs/**', + '!.hugo/**', ], }, { @@ -82,8 +91,8 @@ 'minor', 'patch', ], - ignorePaths: [ - 'docs/**', + matchFileNames: [ + '!docs/**', ], }, { @@ -99,10 +108,11 @@ { groupName: 'Pip', matchManagers: [ + 'pep621', 'pip_requirements', ], - ignorePaths: [ - 'docs/**', + matchFileNames: [ + '!docs/**', ], }, { diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml index 317e890f6bc..0783000ed10 100644 --- a/.github/trusted-contribution.yml +++ b/.github/trusted-contribution.yml @@ -18,6 +18,7 @@ trustedContributors: - "dependabot[bot]" + - "renovate[bot]" - "renovate-bot" annotations: # Trigger Cloud Build tests