ActionsToolkit.Octokit
1.0.0
dotnet add package ActionsToolkit.Octokit --version 1.0.0
NuGet\Install-Package ActionsToolkit.Octokit -Version 1.0.0
<PackageReference Include="ActionsToolkit.Octokit" Version="1.0.0" />
<PackageVersion Include="ActionsToolkit.Octokit" Version="1.0.0" />
<PackageReference Include="ActionsToolkit.Octokit" />
paket add ActionsToolkit.Octokit --version 1.0.0
#r "nuget: ActionsToolkit.Octokit, 1.0.0"
#:package ActionsToolkit.Octokit@1.0.0
#addin nuget:?package=ActionsToolkit.Octokit&version=1.0.0
#tool nuget:?package=ActionsToolkit.Octokit&version=1.0.0
ActionsToolkit.Octokit package
To install the ActionsToolkit.Octokit NuGet package:
<PackageReference Include="ActionsToolkit.Octokit" Version="[Version]" />
Or use the dotnet add package .NET CLI command:
dotnet add package ActionsToolkit.Octokit
ActionsToolkit.Octokit
This was modified, but borrowed from the github/README.md.
You can use this package to access a hydrated Octokit client with authentication and a set of useful defaults for GitHub Actions.
Get the GitHubClient instance
To use the GitHubClient in your .NET project, register the services with an IServiceCollection instance by calling AddGitHubClientServices and then your consuming code can require the GitHubClient via constructor dependency injection.
using Microsoft.Extensions.DependencyInjection;
using GitHub;
using ActionsToolkit.Octokit;
using ActionsToolkit.Octokit.Extensions;
using var provider = new ServiceCollection()
.AddGitHubClientServices()
.BuildServiceProvider();
// The client relies on the value from ${{ secrets.GITHUB_TOKEN }}
var client = provider.GetRequiredService<GitHubClient>();
// Call GitHub REST API /repos/octokit/rest.js/pulls/123
var pullRequest = client.Repos["octokit"]["rest.js"].Pulls[123].GetAsync();
Console.WriteLine(pullRequest.Title);
Attribution
This package is a .NET port of the official @actions/github Node.js package by GitHub, licensed under the MIT License. The underlying GitHub API client is provided by the GitHub.Octokit.SDK NuGet package.
| 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
- GitHub.Octokit.SDK (>= 0.0.31)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ActionsToolkit.Octokit:
| Package | Downloads |
|---|---|
|
ActionsToolkit.Attest
This is an unofficial .NET SDK for GitHub Actions workflows (based on @actions/attest). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 94 | 5/5/2026 |
| 1.0.0-rc.1 | 50 | 5/5/2026 |