MCPcopy Index your code
hub / github.com/google/go-github / GetRepoPublicKey

Method GetRepoPublicKey

github/actions_secrets.go:71–74  ·  view source on GitHub ↗

GetRepoPublicKey gets a public key that should be used for secret encryption. GitHub API docs: https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#get-a-repository-public-key meta:operation GET /repos/{owner}/{repo}/actions/secrets/public-key

(ctx context.Context, owner, repo string)

Source from the content-addressed store, hash-verified

69//
70//meta:operation GET /repos/{owner}/{repo}/actions/secrets/public-key
71func (s *ActionsService) GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error) {
72 url := fmt.Sprintf("repos/%v/%v/actions/secrets/public-key", owner, repo)
73 return s.getPublicKey(ctx, url)
74}
75
76// GetOrgPublicKey gets a public key that should be used for secret encryption.
77//

Calls 1

getPublicKeyMethod · 0.95