GitHubClient.GetRepositoryPublicKeyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a repository public key
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.ActionsPublicKey> GetRepositoryPublicKeyAsync(string repositoryOwner, string repositoryName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRepositoryPublicKeyAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.ActionsPublicKey>
override this.GetRepositoryPublicKeyAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.ActionsPublicKey>
Public Overridable Function GetRepositoryPublicKeyAsync (repositoryOwner As String, repositoryName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ActionsPublicKey)
Parameters
- repositoryOwner
- String
Repository Owner
- repositoryName
- String
Repository Name
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Get a repository public key response.
Remarks
Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets.