Merge pull request #5802 from greggroth/gregg/repo-secrets
Allow working with Codespaces repo secrets
This commit is contained in:
commit
01bff6b91e
3 changed files with 5 additions and 5 deletions
|
|
@ -15,9 +15,9 @@ func NewCmdSecret(f *cmdutil.Factory) *cobra.Command {
|
|||
Short: "Manage GitHub secrets",
|
||||
Long: heredoc.Doc(`
|
||||
Secrets can be set at the repository, or organization level for use in
|
||||
GitHub Actions or Dependabot. User secrets can be set for use in GitHub Codespaces.
|
||||
Environment secrets can be set for use in GitHub Actions.
|
||||
Run "gh help secret set" to learn how to get started.
|
||||
GitHub Actions or Dependabot. User and repository secrets can be set for
|
||||
use in GitHub Codespaces. Environment secrets can be set for use in
|
||||
GitHub Actions. Run "gh help secret set" to learn how to get started.
|
||||
`),
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ func IsSupportedSecretEntity(app App, entity SecretEntity) bool {
|
|||
case Actions:
|
||||
return entity == Repository || entity == Organization || entity == Environment
|
||||
case Codespaces:
|
||||
return entity == User
|
||||
return entity == User || entity == Repository
|
||||
case Dependabot:
|
||||
return entity == Repository || entity == Organization
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -166,9 +166,9 @@ func TestIsSupportedSecretEntity(t *testing.T) {
|
|||
app: Codespaces,
|
||||
supportedEntities: []SecretEntity{
|
||||
User,
|
||||
Repository,
|
||||
},
|
||||
unsupportedEntities: []SecretEntity{
|
||||
Repository,
|
||||
Organization,
|
||||
Environment,
|
||||
Unknown,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue