MCPcopy Index your code
hub / github.com/cli/cli / getEnvSecrets

Function getEnvSecrets

pkg/cmd/secret/list/list.go:281–284  ·  view source on GitHub ↗
(client *http.Client, repo ghrepo.Interface, envName string)

Source from the content-addressed store, hash-verified

279}
280
281func getEnvSecrets(client *http.Client, repo ghrepo.Interface, envName string) ([]Secret, error) {
282 path := fmt.Sprintf("repos/%s/environments/%s/secrets", ghrepo.FullName(repo), envName)
283 return getSecrets(client, repo.RepoHost(), path)
284}
285
286func getRepoSecrets(client *http.Client, repo ghrepo.Interface, app shared.App) ([]Secret, error) {
287 return getSecrets(client, repo.RepoHost(), fmt.Sprintf("repos/%s/%s/secrets", ghrepo.FullName(repo), app))

Callers 1

listRunFunction · 0.85

Calls 3

FullNameFunction · 0.92
getSecretsFunction · 0.85
RepoHostMethod · 0.65

Tested by

no test coverage detected