Merge pull request #5802 from greggroth/gregg/repo-secrets

Allow working with Codespaces repo secrets
This commit is contained in:
Mislav Marohnić 2022-06-21 15:44:31 +02:00 committed by GitHub
commit 01bff6b91e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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.
`),
}

View file

@ -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:

View file

@ -166,9 +166,9 @@ func TestIsSupportedSecretEntity(t *testing.T) {
app: Codespaces,
supportedEntities: []SecretEntity{
User,
Repository,
},
unsupportedEntities: []SecretEntity{
Repository,
Organization,
Environment,
Unknown,