Soenneker.GitHub.Repositories.Secrets 4.0.1114

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Secrets --version 4.0.1114
                    
NuGet\Install-Package Soenneker.GitHub.Repositories.Secrets -Version 4.0.1114
                    
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="4.0.1114" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.Repositories.Secrets" Version="4.0.1114" />
                    
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 4.0.1114
                    
#r "nuget: Soenneker.GitHub.Repositories.Secrets, 4.0.1114"
                    
#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@4.0.1114
                    
#: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=4.0.1114
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.Repositories.Secrets&version=4.0.1114
                    
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 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. 
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
4.0.1117 52 9/1/2026
4.0.1116 62 9/1/2026
4.0.1115 51 9/1/2026
4.0.1114 63 8/31/2026
4.0.1113 77 8/31/2026
4.0.1112 58 8/31/2026
4.0.1111 37 8/31/2026
4.0.1110 50 8/31/2026
4.0.1109 42 8/31/2026
4.0.1108 89 8/31/2026
4.0.1107 104 8/30/2026
4.0.1106 59 8/30/2026
4.0.1105 52 8/30/2026
4.0.1104 82 8/30/2026
4.0.1102 47 8/30/2026
4.0.1101 50 8/29/2026
4.0.1099 92 8/29/2026
4.0.1098 73 8/29/2026
4.0.1097 104 8/28/2026
4.0.1096 133 8/27/2026
Loading failed

Update dependency Soenneker.GitHub.ClientUtil to 4.0.627 (#1643)