-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add dependabot and nix flake update workflows [ENG-11704] #71
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
Conversation
dc9ad7a to
cff8891
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds automated dependency management tooling for the repository by introducing Dependabot configuration for Python and GitHub Actions dependencies, and a scheduled Nix flake update workflow. These additions align with the goal of keeping dependencies current with minimal manual intervention.
Key Changes:
- Dependabot configuration with weekly schedules for Python (pip) and GitHub Actions dependencies, grouping dev and AI framework updates
- Automated Nix flake update workflow that runs weekly, creating PRs with auto-merge enabled
- Both automation workflows scheduled for Mondays at 09:00 to coordinate dependency updates
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
.github/dependabot.yaml |
Configures Dependabot for weekly Python and GitHub Actions dependency updates with grouped minor/patch updates for dev dependencies and AI frameworks |
.github/workflows/nix-flake-update.yaml |
Implements scheduled workflow to automatically update Nix flake inputs weekly and create PRs with auto-merge enabled |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
Copilot
AI
Dec 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent version pinning for actions/checkout. This workflow uses v4.3.1, but all other workflows in the repository use v6.0.1 (commit hash 8e8c483db84b4bee98b60c0593521ed34d9990e8). For consistency and to use the same version as the rest of the codebase, this should be updated to match the version used in ci.yaml, release.yaml, and nix-flake.yaml.
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
.github/dependabot.yaml
Outdated
| - "ruff" | ||
| - "ty" | ||
| - "pre-commit" | ||
| - "gitleaks" |
Copilot
AI
Dec 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern "gitleaks" is included in the dev-dependencies group, but gitleaks is not a Python package managed by pip. It's a standalone tool installed via Nix (as seen in the justfile and CI workflows). This pattern will not match any Python dependencies and should be removed from the dev-dependencies group.
| - "gitleaks" |
| - "pytest*" | ||
| - "ruff" | ||
| - "ty" | ||
| - "pre-commit" |
Copilot
AI
Dec 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern "pre-commit" is included in the dev-dependencies group, but pre-commit is not a Python package managed by pip in this project. It's managed via the git-hooks.nix flake module (see flake.nix). This pattern will not match any Python dependencies and should be removed from the dev-dependencies group.
| - "pre-commit" |
- Add dependabot.yaml for automated dependency updates - Python dependencies (pip) with weekly schedule - GitHub Actions with weekly schedule - Group dev dependencies and AI framework dependencies - Add nix-flake-update.yaml workflow - Scheduled weekly Nix flake input updates - Auto-creates PR with merge enabled
cff8891 to
b53c0a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 2 files
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
glebedel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
dependabot.yamlfor automated dependency updatesnix-flake-update.yamlworkflow (aligned with stackone-ai-node)Test plan
Summary by cubic
Add Dependabot and a scheduled Nix flake update workflow to automate dependency updates for Python, GitHub Actions, and Nix. This keeps dependencies current with weekly PRs and auto-merge when safe.
Written for commit e97c290. Summary will update automatically on new commits.