GitHubClient.AddSelectedRepoToOrgSecretAsync 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.
Add selected repository to an organization secret
public virtual System.Threading.Tasks.Task AddSelectedRepoToOrgSecretAsync(string repositoryOwner, int repositoryId, string secretName, System.Threading.CancellationToken cancellationToken = default);
abstract member AddSelectedRepoToOrgSecretAsync : string * int * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.AddSelectedRepoToOrgSecretAsync : string * int * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function AddSelectedRepoToOrgSecretAsync (repositoryOwner As String, repositoryId As Integer, secretName As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- repositoryOwner
- String
Repository Owner
- repositoryId
- Int32
Repository Id
- secretName
- String
Secret Name
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Remarks
Adds a repository to an organization secret when the visibility for repository access is set to selected. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the secrets organization permission to use this endpoint.