Skip to content

Support for multiple destinations for GitHubVulnerabilities2v3 job#10741

Open
agr wants to merge 12 commits intodevfrom
agr-2vulndest
Open

Support for multiple destinations for GitHubVulnerabilities2v3 job#10741
agr wants to merge 12 commits intodevfrom
agr-2vulndest

Conversation

@agr
Copy link
Copy Markdown
Contributor

@agr agr commented Mar 14, 2026

Progress on https://github.com/NuGet/Engineering/issues/6293, #10656

Adds support for multiple ingestors to AdvisoryCollector. Replaced single IAdvisoryIngestor constructor argument with IReadOnlyCollection<IAdvisoryIngestor>. DI container takes care of creating a list of registrations.

Added support to specify more than one blob storage destination for the job. Only 1 or 2 destinations are supported at the moment, as I don't see a need for more, but the code is easily updatable to accommodate. Job configuration file is changed as a result: removed StorageConnectionString and V3BaseUrl properties, introduced Destinations array property instead that is expected to contain a list (of 1 or 2 elements) of objects containing the properties removed from the configuration object.

Job configuration would have to be updated with this change.

Added tests for AdvisoryCollector.

@agr agr requested a review from a team as a code owner March 14, 2026 00:27
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
Copy link
Copy Markdown
Contributor

@zhhyu zhhyu Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: some dependencies may be not needed.

using NuGet.Services.GitHub.Ingest;
using Microsoft.Extensions.Logging;
using NuGet.Services.Cursor;
using System.Collections.Generic;
Copy link
Copy Markdown
Contributor

@zhhyu zhhyu Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: order of dependencies.

zhhyu
zhhyu previously approved these changes Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants