CreateOrUpdateOrgSecret creates or updates an orgs codespace secret Creates or updates an organization secret with an encrypted value. Encrypt your secret using LibSodium. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub API docs: https://docs.githu
(ctx context.Context, org string, eSecret *EncryptedSecret)
| 204 | // |
| 205 | //meta:operation PUT /orgs/{org}/codespaces/secrets/{secret_name} |
| 206 | func (s *CodespacesService) CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *EncryptedSecret) (*Response, error) { |
| 207 | if eSecret == nil { |
| 208 | return nil, errors.New("encrypted secret must be provided") |
| 209 | } |
| 210 | |
| 211 | u := fmt.Sprintf("orgs/%v/codespaces/secrets/%v", org, eSecret.Name) |
| 212 | return s.createOrUpdateSecret(ctx, u, eSecret) |
| 213 | } |
| 214 | |
| 215 | // CreateOrUpdateRepoSecret creates or updates a repos codespace secret |
| 216 | // |
nothing calls this directly
no test coverage detected