-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add comprehensive NPM security management workflow #4027
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 comprehensive NPM security management workflow #4027
Conversation
## NPM Audit Fix with TypeScript Auto-Repair - Automated security vulnerability detection and fixes for hashFiles dependencies - Intelligent TypeScript compatibility auto-repair after npm updates - Graduated response strategy for different vulnerability severities - Weekly schedule (Mondays at 7 AM) plus manual triggers ## Key Features - ✅ **Security-focused**: Only creates PRs when moderate+ vulnerabilities found - ✅ **TypeScript auto-repair**: Fixes @types/node compatibility issues automatically - ✅ **Multi-step recovery**: Clean reinstall, dependency resolution, build verification - ✅ **Graduated response**: force-fix for critical/high vulnerabilities only - ✅ **Build validation**: Ensures code compiles after automated fixes - ✅ **Enhanced PR details**: Shows audit status, fixes applied, build status ## Security Enhancements - ✅ **Proper error handling**: No vulnerability masking with '|| true' - ✅ **Transparent reporting**: Clear distinction between success/partial/failed states - ✅ **Audit level checking**: moderate, high, critical severity handling - ✅ **Force-fix safety**: Only for critical/high vulnerabilities ## Dependencies - **Requires**: Labels from actions#4024 (dependency, security, typescript, needs-manual-review) - **Integrates with**: Monitoring from actions#4025 - **Complements**: Node version management from actions#4026 This workflow ensures npm dependencies stay secure while maintaining TypeScript compatibility and build stability.
## .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 NPM security vulnerability detection and fixing workflow with intelligent TypeScript compatibility handling. The workflow runs weekly to scan for moderate+ security vulnerabilities and automatically attempts to fix them while maintaining build stability.
Key Changes:
- Automated security scanning with graduated response strategy (moderate → critical/high vulnerability handling)
- TypeScript auto-repair system to handle compatibility issues after npm updates
- Multi-step recovery process with clean reinstall and dependency resolution
- Enhanced PR creation with detailed status reporting and appropriate labeling
🔒 NPM Security Management with TypeScript Auto-Repair
This PR introduces a comprehensive workflow for automated NPM security vulnerability detection and fixes, with TypeScript compatibility handling.
🎯 Problem Solved
Current dependency management lacks automated NPM security vulnerability fixes and TypeScript compatibility maintenance.
�� Solution Overview
Weekly automated security scanning with graduated response strategy:
🔧 Key Features
--forcefor critical/high vulnerabilities🏗️ Workflow Integration
dependency,security,typescript,needs-manual-review)📋 Testing Validated
🔄 Monthly Release Integration
This workflow supports the monthly runner release process by ensuring NPM dependencies stay secure between releases while maintaining build stability.
Part of Actions Runner dependency management enhancement series: