feat: weekly CG alerts scan workflow for vulnerable NuGet dependencies#38033
Draft
feat: weekly CG alerts scan workflow for vulnerable NuGet dependencies#38033
Conversation
Agent-Logs-Url: https://github.com/dotnet/efcore/sessions/3c51563c-f551-4d54-a41e-5364529cb733 Co-authored-by: SamMonoRT <46026722+SamMonoRT@users.noreply.github.com>
…date Agent-Logs-Url: https://github.com/dotnet/efcore/sessions/797470d3-f8e4-4ac2-b0b1-45655b720a2f Co-authored-by: SamMonoRT <46026722+SamMonoRT@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
SamMonoRT
March 31, 2026 16:08
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a scheduled GitHub Actions workflow that scans all NuGet dependencies (direct and transitive) for known CVEs, auto-applies fixes where possible, and opens a PR + tracking issue with the results.
Workflow:
.github/workflows/security-vulnerability-scan.ymlTriggers: weekly (Monday 09:00 UTC) +
workflow_dispatchScan
restore.shnuget.orgtoNuGet.config(repo normally clears all sources in favor of internal AzDO feeds) to get vulnerability metadatadotnet list package --vulnerable --include-transitive --format jsonacross all.slnfsolution filters; merges results withjqAuto-fix logic
Directory.Packages.props/test/Directory.Packages.props$(SQLitePCLRawVersion))eng/Versions.props<PackageVersion>pin (usesCentralPackageTransitivePinningEnabled)eng/Version.Details.xmlFix versions are resolved by querying the GitHub Security Advisory GraphQL API (
firstPatchedVersionper GHSA ID).Output
cg-alerts/vuln-fix-<date>, opens a PRCG-alerts-scan) with a markdown table covering severity, current/patched versions, advisory links, and reason for any skipped packages