-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add automated .NET dependency management workflow #4028
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
feat: add automated .NET dependency management workflow #4028
Conversation
## .NET Core/SDK Automated Upgrade Management - Weekly automated checking for new .NET Core/SDK releases - Intelligent global.json and project file updates with compatibility validation - Multi-version support with build verification across all .NET projects ## Key Features - ✅ **Multi-source monitoring**: Official releases API + package manager updates - ✅ **Smart compatibility**: Preserves project compatibility while upgrading dependencies - ✅ **Build validation**: Full solution build verification after .NET updates - ✅ **Version pinning**: Updates global.json SDK version with compatibility checks - ✅ **Package updates**: NuGet package upgrades with conflict resolution ## Update Strategy - **Weekly schedule**: Mondays at 8 AM for consistent .NET maintenance - **Manual triggers**: On-demand updates for critical security releases - **Graduated response**: Different handling for LTS vs current releases - **Rollback safety**: Build failures prevent PR creation ## Integration Benefits - **Release compatibility**: Ensures runner builds with latest .NET versions - **Security updates**: Automated security patch integration - **Build stability**: Validates compatibility before suggesting changes - **Development workflow**: Reduces manual .NET maintenance overhead ## Dependencies - **Requires**: Labels from actions#4024 (dependency, needs-manual-review) - **Integrates with**: Overall monitoring from actions#4025 - **Complements**: NPM security management from actions#4027 This workflow ensures .NET dependencies stay current and secure while maintaining build compatibility for the monthly runner release cycle.
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 introduces an automated .NET SDK dependency management workflow to streamline weekly .NET Core/SDK updates with intelligent compatibility validation and build verification.
Key Changes:
- Automated weekly .NET SDK updates via GitHub Actions workflow
- Smart version detection and compatibility checking
- Automated updates to global.json, devcontainer configuration, and development scripts
- Pull request creation with proper labeling for dependency tracking
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| gh pr create -B main -H feature/dotnetsdk-upgrade/${{ needs.dotnet-update.outputs.DOTNET_LATEST_MAJOR_MINOR_PATCH_VERSION }} --title "Update dotnet sdk to latest version @${{ needs.dotnet-update.outputs.DOTNET_LATEST_MAJOR_MINOR_PATCH_VERSION }}" --label "dependency" --body " |
Copilot
AI
Sep 9, 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.
According to the custom coding guidelines, changes should be accompanied by non-trivial tests. This workflow lacks test coverage to verify the .NET SDK upgrade functionality works correctly.
## Schedule Optimization - **Updated time**: Monday 12 AM (midnight) → 8 AM UTC - **Reasoning**: Independent of Node.js/NPM, runs in parallel with other updates - **Position**: Third in dependency update sequence ## Optimal Monday Schedule (Option A) - 6 AM UTC: Node.js updates (foundation) - 7 AM UTC: NPM security audit (depends on Node.js) - **8 AM UTC: .NET SDK updates** ← Updated (independent) - 9 AM UTC: Docker/Buildx updates (independent) - 10 AM UTC: Dependency monitoring (summary) This timing allows .NET updates to run independently while maintaining the coordinated Monday morning dependency management approach.
Update labels for dotnet dependency management