Skip to content
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

Add a profile for enforcing lightweight dependabot configuration #260

Merged
merged 3 commits into from
Jan 10, 2025
Merged
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
73 changes: 73 additions & 0 deletions profiles/github/stacklok-lightweight-dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
# Stacklok profile
version: v1
type: profile
name: stacklok-lightweight-dependabot
# The selector is used to select repositories that this profile will be applied to.
# In this case, we are selecting repositories that are considered low-maintenance.
selection:
- entity: repository
selector: >
repository.name.startsWith('stacklok/quiver') ||
repository.name.startsWith('stacklok/minder-bundle-updater') ||
repository.name.startsWith('stacklok/healthcheck-bundle')
display_name: Stacklok Lightweight Dependabot Profile
blkt marked this conversation as resolved.
Show resolved Hide resolved
context:
provider: github
alert: "off"
remediate: "on"
repository:
- type: enforce_file
name: "Enforce lightweight Dependabot config for Go projects"
def:
apply_if_file: go.mod
file: ".github/dependabot.yml"
content: |
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
- type: enforce_file
name: "Enforce lightweight Dependabot config for JavaScript projects"
def:
apply_if_file: package.json
file: ".github/dependabot.yml"
content: |
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
- type: enforce_file
name: "Enforce lightweight Dependabot config for Python projects"
def:
apply_if_file: requirements.txt
file: ".github/dependabot.yml"
content: |
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
Loading