Soenneker.GitHub.Repositories.Security
11.0.256
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Security --version 11.0.256
NuGet\Install-Package Soenneker.GitHub.Repositories.Security -Version 11.0.256
<PackageReference Include="Soenneker.GitHub.Repositories.Security" Version="11.0.256" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Security" Version="11.0.256" />
<PackageReference Include="Soenneker.GitHub.Repositories.Security" />
paket add Soenneker.GitHub.Repositories.Security --version 11.0.256
#r "nuget: Soenneker.GitHub.Repositories.Security, 11.0.256"
#:package Soenneker.GitHub.Repositories.Security@11.0.256
#addin nuget:?package=Soenneker.GitHub.Repositories.Security&version=11.0.256
#tool nuget:?package=Soenneker.GitHub.Repositories.Security&version=11.0.256
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.1417)
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.274 | 64 | 11/19/2026 |
| 11.0.273 | 49 | 11/19/2026 |
| 11.0.272 | 67 | 11/19/2026 |
| 11.0.271 | 53 | 11/19/2026 |
| 11.0.270 | 52 | 11/18/2026 |
| 11.0.269 | 55 | 11/18/2026 |
| 11.0.268 | 92 | 11/18/2026 |
| 11.0.267 | 96 | 11/17/2026 |
| 11.0.266 | 59 | 11/17/2026 |
| 11.0.265 | 131 | 11/16/2026 |
| 11.0.264 | 133 | 11/15/2026 |
| 11.0.263 | 108 | 11/15/2026 |
| 11.0.262 | 119 | 11/15/2026 |
| 11.0.261 | 133 | 11/15/2026 |
| 11.0.260 | 134 | 11/14/2026 |
| 11.0.259 | 176 | 11/13/2026 |
| 11.0.258 | 192 | 11/12/2026 |
| 11.0.257 | 133 | 11/12/2026 |
| 11.0.256 | 124 | 11/11/2026 |
| 11.0.255 | 117 | 11/11/2026 |
Updated Soenneker.GitHub.Repositories to 11.0.1417