Soenneker.GitHub.Repositories.Secrets 11.0.1249

Prefix Reserved
dotnet add package Soenneker.GitHub.Repositories.Secrets --version 11.0.1249
                    
NuGet\Install-Package Soenneker.GitHub.Repositories.Secrets -Version 11.0.1249
                    
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.Secrets" Version="11.0.1249" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.Repositories.Secrets" Version="11.0.1249" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.GitHub.Repositories.Secrets" />
                    
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.Secrets --version 11.0.1249
                    
#r "nuget: Soenneker.GitHub.Repositories.Secrets, 11.0.1249"
                    
#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.Secrets@11.0.1249
                    
#: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.Secrets&version=11.0.1249
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.Repositories.Secrets&version=11.0.1249
                    
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.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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.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
11.0.1249 0 11/9/2026
11.0.1248 70 11/7/2026
11.0.1247 5,495 11/7/2026
11.0.1246 636 11/6/2026
11.0.1245 665 11/5/2026
11.0.1244 5,692 11/4/2026
11.0.1243 182 11/3/2026
11.0.1242 155 11/3/2026
11.0.1241 97 11/3/2026
11.0.1240 111 11/3/2026
11.0.1239 585 11/3/2026
11.0.1238 107 11/3/2026
11.0.1237 117 11/3/2026
11.0.1236 91 11/3/2026
11.0.1235 172 11/2/2026
11.0.1234 143 11/2/2026
11.0.1233 129 11/2/2026
11.0.1232 112 11/2/2026
11.0.1231 695 11/2/2026
11.0.1230 6,306 10/31/2026
Loading failed

Update dependency Soenneker.GitHub.ClientUtil to 11.0.771 (#1811)