| 57 | } |
| 58 | |
| 59 | func getRepoPubKey(client *api.Client, repo ghrepo.Interface, app shared.App) (*PubKey, error) { |
| 60 | u, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), string(app), "secrets", "public-key") |
| 61 | if err != nil { |
| 62 | return nil, err |
| 63 | } |
| 64 | return getPubKey(client, repo.RepoHost(), u) |
| 65 | } |
| 66 | |
| 67 | func getEnvPubKey(client *api.Client, repo ghrepo.Interface, envName string) (*PubKey, error) { |
| 68 | u, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "environments", envName, "secrets", "public-key") |