Soenneker.GitHub.Repositories.Security
11.0.284
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Security --version 11.0.284
NuGet\Install-Package Soenneker.GitHub.Repositories.Security -Version 11.0.284
<PackageReference Include="Soenneker.GitHub.Repositories.Security" Version="11.0.284" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Security" Version="11.0.284" />
<PackageReference Include="Soenneker.GitHub.Repositories.Security" />
paket add Soenneker.GitHub.Repositories.Security --version 11.0.284
#r "nuget: Soenneker.GitHub.Repositories.Security, 11.0.284"
#:package Soenneker.GitHub.Repositories.Security@11.0.284
#addin nuget:?package=Soenneker.GitHub.Repositories.Security&version=11.0.284
#tool nuget:?package=Soenneker.GitHub.Repositories.Security&version=11.0.284
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.GitHub.Repositories (>= 11.0.1450)
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 |
|---|---|---|
| 11.0.291 | 0 | 12/1/2026 |
| 11.0.290 | 0 | 12/1/2026 |
| 11.0.289 | 0 | 12/1/2026 |
| 11.0.288 | 0 | 12/1/2026 |
| 11.0.287 | 0 | 11/30/2026 |
| 11.0.286 | 0 | 11/30/2026 |
| 11.0.285 | 0 | 11/30/2026 |
| 11.0.284 | 46 | 11/30/2026 |
| 11.0.283 | 56 | 11/30/2026 |
| 11.0.282 | 61 | 11/30/2026 |
| 11.0.281 | 47 | 11/30/2026 |
| 11.0.280 | 47 | 11/30/2026 |
| 11.0.279 | 53 | 11/29/2026 |
| 11.0.278 | 80 | 11/29/2026 |
| 11.0.277 | 104 | 11/27/2026 |
| 11.0.276 | 102 | 11/25/2026 |
| 11.0.275 | 212 | 11/21/2026 |
| 11.0.274 | 237 | 11/19/2026 |
| 11.0.273 | 110 | 11/19/2026 |
| 11.0.272 | 128 | 11/19/2026 |
Updated Soenneker.GitHub.Repositories to 11.0.1450