Soenneker.GitHub.Repositories.Secrets
4.0.1111
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Secrets --version 4.0.1111
NuGet\Install-Package Soenneker.GitHub.Repositories.Secrets -Version 4.0.1111
<PackageReference Include="Soenneker.GitHub.Repositories.Secrets" Version="4.0.1111" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Secrets" Version="4.0.1111" />
<PackageReference Include="Soenneker.GitHub.Repositories.Secrets" />
paket add Soenneker.GitHub.Repositories.Secrets --version 4.0.1111
#r "nuget: Soenneker.GitHub.Repositories.Secrets, 4.0.1111"
#:package Soenneker.GitHub.Repositories.Secrets@4.0.1111
#addin nuget:?package=Soenneker.GitHub.Repositories.Secrets&version=4.0.1111
#tool nuget:?package=Soenneker.GitHub.Repositories.Secrets&version=4.0.1111
Soenneker.GitHub.Repositories.Secrets
List GitHub Actions secret metadata and securely create, replace, or delete repository secrets.
Installation
dotnet add package Soenneker.GitHub.Repositories.Secrets
Configuration
{
"GH": {
"Token": "github-token"
}
}
The token needs GitHub Actions secrets read or write permission for the target repository.
Registration
services.AddGitHubRepositoriesSecretsUtilAsSingleton();
Use AddGitHubRepositoriesSecretsUtilAsScoped() for a scoped consumer.
Create or replace a secret
await secrets.CreateOrUpdate(
owner: "soenneker",
repo: "example-repository",
name: "NUGET__TOKEN",
value: nugetToken,
cancellationToken);
CreateOrUpdate retrieves the repository's current public key, encrypts the UTF-8 value with a libsodium sealed box, and sends only the encrypted value to GitHub.
List secret metadata
List<ActionsSecret> repositorySecrets = await secrets.GetAll(
"soenneker",
"example-repository",
cancellationToken);
List<ActionsSecret> organizationSecrets = await secrets.GetOrganization(
"soenneker",
"example-repository",
cancellationToken);
Both list methods follow pagination. GetOrganization returns organization-level Actions secrets made available to the specified repository.
GitHub never returns secret values after storage. These methods return names and metadata only. The four-argument GetAll(owner, repo, name, ...) overload retrieves metadata for one named repository secret.
Delete permanently removes the named repository secret. It does not affect an organization secret with the same name.
| 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
- Sodium.Core (>= 1.4.1)
- Soenneker.Extensions.Arrays.Bytes (>= 4.0.66)
- Soenneker.Extensions.Task (>= 4.0.128)
- Soenneker.GitHub.ClientUtil (>= 4.0.624)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.GitHub.Repositories.Secrets:
| 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.1117 | 0 | 9/1/2026 |
| 4.0.1116 | 0 | 9/1/2026 |
| 4.0.1115 | 0 | 9/1/2026 |
| 4.0.1114 | 0 | 8/31/2026 |
| 4.0.1113 | 30 | 8/31/2026 |
| 4.0.1112 | 44 | 8/31/2026 |
| 4.0.1111 | 30 | 8/31/2026 |
| 4.0.1110 | 43 | 8/31/2026 |
| 4.0.1109 | 36 | 8/31/2026 |
| 4.0.1108 | 73 | 8/31/2026 |
| 4.0.1107 | 95 | 8/30/2026 |
| 4.0.1106 | 51 | 8/30/2026 |
| 4.0.1105 | 45 | 8/30/2026 |
| 4.0.1104 | 73 | 8/30/2026 |
| 4.0.1102 | 40 | 8/30/2026 |
| 4.0.1101 | 43 | 8/29/2026 |
| 4.0.1099 | 80 | 8/29/2026 |
| 4.0.1098 | 64 | 8/29/2026 |
| 4.0.1097 | 94 | 8/28/2026 |
| 4.0.1096 | 126 | 8/27/2026 |
Update dependency Soenneker.GitHub.ClientUtil to 4.0.624 (#1640)