Skip to content

Use Dependabot to update Go modules #4190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,56 @@
# documentation: https://docs.github.com/code-security/dependabot/dependabot-version-updates
# schema documentation: https://docs.github.com/code-security/dependabot/working-with-dependabot/dependabot-options-reference
# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json
#
# Dependabot allows only one schedule per package-ecosystem, directory, and target-branch.
# Configurations that lack a "target-branch" field also affect security updates.
#
# There is a hack to have *two* schedules: https://github.com/dependabot/dependabot-core/issues/1778#issuecomment-1988140219
---
version: 2
updates:
- package-ecosystem: github-actions
directories:
# "/" is a special case that includes ".github/workflows/*"
- '/'
- '.github/actions/*'
schedule:
interval: weekly
day: tuesday
labels:
- dependencies
groups:
# Group security updates into one pull request
action-vulnerabilities:
applies-to: security-updates
patterns: ['*']

# Group version updates into one pull request
github-actions:
applies-to: version-updates
patterns: ['*']

- package-ecosystem: gomod
directory: '/'
schedule:
interval: weekly
day: wednesday
labels:
- dependencies
groups:
all-github-actions:
# Group security updates into one pull request
go-vulnerabilities:
applies-to: security-updates
patterns: ['*']

# Group Kubernetes and OpenTelemetry version updates into separate pull requests
kubernetes:
patterns: ['k8s.io/*', 'sigs.k8s.io/*']
opentelemetry:
patterns: ['go.opentelemetry.io/*']
go-dependencies:
patterns: ['*']
exclude-patterns:
- 'k8s.io/*'
- 'sigs.k8s.io/*'
- 'go.opentelemetry.io/*'
Loading