Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active June 3, 2025 03:23
Show Gist options
  • Save magnetikonline/6f215db058e327905bce66c37f92426c to your computer and use it in GitHub Desktop.
Save magnetikonline/6f215db058e327905bce66c37f92426c to your computer and use it in GitHub Desktop.
Enable GitHub Dependabot for Golang based repositories.

Dependabot for Golang based repositories

Minimal YAML configuration for enabling Dependabot within a Golang based repository.

Place dependabot.yaml at .github/dependabot.yaml within a target repository and you should be good to go.

Configuration dependabot-grouped.yaml implements package grouping, in this example all packages related to AWS Golang SDK with updates will be rolled up into a single Dependabot pull request.

Reference

version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
groups:
aws-sdk-go-v2:
patterns:
- github.com/aws/aws-sdk-go-v2
- github.com/aws/aws-sdk-go-v2/*
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
@dung-le2-ts
Copy link

πŸ‘

@jksevend
Copy link

πŸ‘

@fabianoflorentino
Copy link

πŸ‘

@pratikbin
Copy link

πŸ‘

@JaredEzz
Copy link

πŸ‘

@egorsmkv
Copy link

πŸ‘

@baturax
Copy link

baturax commented May 31, 2025

πŸ‘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment