| 115 | } |
| 116 | |
| 117 | func putUserSecret(client *api.Client, host string, pk *PubKey, key, eValue string, repositoryIDs []int64) error { |
| 118 | payload := SecretPayload{ |
| 119 | EncryptedValue: eValue, |
| 120 | KeyID: pk.ID, |
| 121 | Repositories: repositoryIDs, |
| 122 | } |
| 123 | path, err := safeurl.JoinPath("user", "codespaces", "secrets", key) |
| 124 | if err != nil { |
| 125 | return err |
| 126 | } |
| 127 | return putSecret(client, host, path, payload) |
| 128 | } |
| 129 | |
| 130 | func putEnvSecret(client *api.Client, pk *PubKey, repo ghrepo.Interface, envName string, secretName, eValue string) error { |
| 131 | payload := SecretPayload{ |