Soenneker.GitHub.Repositories.Security
4.0.136
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Security --version 4.0.136
NuGet\Install-Package Soenneker.GitHub.Repositories.Security -Version 4.0.136
<PackageReference Include="Soenneker.GitHub.Repositories.Security" Version="4.0.136" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Security" Version="4.0.136" />
<PackageReference Include="Soenneker.GitHub.Repositories.Security" />
paket add Soenneker.GitHub.Repositories.Security --version 4.0.136
#r "nuget: Soenneker.GitHub.Repositories.Security, 4.0.136"
#:package Soenneker.GitHub.Repositories.Security@4.0.136
#addin nuget:?package=Soenneker.GitHub.Repositories.Security&version=4.0.136
#tool nuget:?package=Soenneker.GitHub.Repositories.Security&version=4.0.136
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 | 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. |
-
net10.0
- Soenneker.GitHub.Repositories (>= 4.0.1243)
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.158 | 0 | 9/13/2026 |
| 4.0.157 | 0 | 9/13/2026 |
| 4.0.156 | 0 | 9/13/2026 |
| 4.0.155 | 42 | 9/13/2026 |
| 4.0.154 | 65 | 9/12/2026 |
| 4.0.153 | 38 | 9/12/2026 |
| 4.0.152 | 72 | 9/12/2026 |
| 4.0.151 | 101 | 9/11/2026 |
| 4.0.150 | 103 | 9/10/2026 |
| 4.0.149 | 81 | 9/10/2026 |
| 4.0.148 | 43 | 9/9/2026 |
| 4.0.147 | 42 | 9/9/2026 |
| 4.0.146 | 153 | 9/9/2026 |
| 4.0.145 | 73 | 9/8/2026 |
| 4.0.144 | 85 | 9/8/2026 |
| 4.0.143 | 73 | 9/8/2026 |
| 4.0.142 | 190 | 9/8/2026 |
| 4.0.141 | 134 | 9/7/2026 |
| 4.0.139 | 222 | 9/6/2026 |
| 4.0.136 | 138 | 9/4/2026 |