(client *api.Client, repo ghrepo.Interface, envName string)
| 53 | } |
| 54 | |
| 55 | func getEnvPubKey(client *api.Client, repo ghrepo.Interface, envName string) (*PubKey, error) { |
| 56 | return getPubKey(client, repo.RepoHost(), fmt.Sprintf("repos/%s/environments/%s/secrets/public-key", |
| 57 | ghrepo.FullName(repo), envName)) |
| 58 | } |
| 59 | |
| 60 | func putSecret(client *api.Client, host, path string, payload interface{}) error { |
| 61 | payloadBytes, err := json.Marshal(payload) |