| 300 | } |
| 301 | |
| 302 | func getEnvSecrets(client *http.Client, repo ghrepo.Interface, envName string) ([]Secret, error) { |
| 303 | path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "environments", envName, "secrets") |
| 304 | if err != nil { |
| 305 | return nil, err |
| 306 | } |
| 307 | return getSecrets(client, repo.RepoHost(), path) |
| 308 | } |
| 309 | |
| 310 | func getRepoSecrets(client *http.Client, repo ghrepo.Interface, app shared.App) ([]Secret, error) { |
| 311 | u, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), string(app), "secrets") |