Soenneker.GitHub.Repositories.Security 4.0.199

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Security --version 4.0.199
                    
NuGet\Install-Package Soenneker.GitHub.Repositories.Security -Version 4.0.199
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.GitHub.Repositories.Security" Version="4.0.199" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.Repositories.Security" Version="4.0.199" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.GitHub.Repositories.Security" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.GitHub.Repositories.Security --version 4.0.199
                    
#r "nuget: Soenneker.GitHub.Repositories.Security, 4.0.199"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.GitHub.Repositories.Security@4.0.199
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.GitHub.Repositories.Security&version=4.0.199
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.Repositories.Security&version=4.0.199
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.GitHub.Repositories.Security

Retrieve and log open Dependabot, code-scanning, and secret-scanning alerts for one repository or every repository owned by an account.

Installation

dotnet add package Soenneker.GitHub.Repositories.Security

Configuration

{
  "GH": {
    "Token": "github-token"
  }
}

The token needs read access to each security-alert feature being queried. GitHub may deny a feature when it is disabled for the repository or unavailable to the account.

Registration

services.AddGitHubRepositoriesSecurityUtilAsSingleton();

Use AddGitHubRepositoriesSecurityUtilAsScoped() for a scoped consumer.

Retrieve alerts

List<DependabotAlert> dependabot = await security.GetDependabotAlerts(
    "soenneker",
    "example-repository",
    cancellationToken: cancellationToken);

List<CodeScanningAlertItems> codeScanning = await security.GetCodeScanningAlerts(
    "soenneker",
    "example-repository",
    cancellationToken);

List<SecretScanningAlert> secretScanning = await security.GetSecretScanningAlerts(
    "soenneker",
    "example-repository",
    cancellationToken: cancellationToken);

Code-scanning and secret-scanning retrieval follows pagination. Dependabot retrieval requests GitHub's maximum page size of 100 alerts. Dependabot and secret-scanning methods default to open alerts; pass state: null for all states, or state: "resolved" for resolved secret-scanning alerts. Code scanning currently returns open alerts.

Log alert summaries

await security.LogAllSecurityAlerts(
    "soenneker",
    "example-repository",
    cancellationToken);

await security.LogAllSecurityAlertsForAllRepos(
    "soenneker",
    cancellationToken: cancellationToken);

Logging methods write alert summaries through ILogger. If a security feature is disabled or inaccessible, that feature is skipped and the API error is written at debug level; requested cancellation still stops the scan.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.GitHub.Repositories.Security:

Package Downloads
Soenneker.GitHub.Repositories.Suite

Registers commonly used Soenneker GitHub repository services through one package

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.208 0 10/18/2026
4.0.207 86 10/17/2026
4.0.206 48 10/16/2026
4.0.205 90 10/15/2026
4.0.204 66 10/15/2026
4.0.203 101 10/15/2026
4.0.202 44 10/14/2026
4.0.201 71 10/14/2026
4.0.200 50 10/14/2026
4.0.199 69 10/14/2026
4.0.193 90 10/13/2026
4.0.191 118 10/12/2026
4.0.190 81 10/12/2026
4.0.189 214 10/11/2026
4.0.188 165 10/10/2026
4.0.187 195 10/9/2026
4.0.186 160 10/7/2026
4.0.185 164 10/4/2026
4.0.184 157 10/3/2026
4.0.183 167 10/2/2026
Loading failed

Use NuGet API token for publishing