Get-GitHubSecretSelectedRepository¶
SYNOPSIS¶
List selected repositories for an organization secret.
SYNTAX¶
__AllParameterSets¶
Get-GitHubSecretSelectedRepository [-Owner] <string> [-Name] <string> [[-Context] <Object>]
[<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Lists all repositories that have been selected when the visibilityfor repository access to a secret is set to selected.
Authenticated
users must have collaborator access to a repository to create, update, or read secrets.
OAuth app tokens and personal access tokens (classic)
need the admin:org scope to use this endpoint.
If the repository is private, the repo scope is also required.
EXAMPLES¶
EXAMPLE 1¶
Get-GitHubSecretSelectedRepository -Owner 'octocat' -Name 'hello-world'
Outputs:
Name : hello-world
NodeID : m_MDXNcwMAwMMA
ID : 123456789
Description : A test repo for hello-world.
Owner : octocat
Url : https://github.com/octocat/hello-world
CreatedAt :
UpdatedAt :
Name : hello-world2
NodeID : n_NEYOdxNBxNNB
ID : 987654321
Description : A test repo for hello-world.
Owner : octocat
Url : https://github.com/octocat/hello-world2
CreatedAt :
UpdatedAt :
Gets the repositories that have been selected for the secret hello-world in the organization octocat.
PARAMETERS¶
-Context¶
The context to run the command in. Used to get the details for the API call. Can be either a string or a GitHubContext object.
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Name¶
The name of the secret.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Owner¶
The account owner of the repository. The name is not case sensitive.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
GitHubRepository¶
{{ Fill in the Description }}
NOTES¶
List selected repositories for an organization secret