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

Method GetOrgPublicKey

github/codespaces_secrets.go:98–100  ·  view source on GitHub ↗

GetOrgPublicKey gets the org public key for encrypting codespace secrets Gets a public key for an organization, which is required in order to encrypt secrets. You need to encrypt the value of a secret before you can create or update secrets. You must authenticate using an access token with the admi

(ctx context.Context, org string)

Source from the content-addressed store, hash-verified

96//
97//meta:operation GET /orgs/{org}/codespaces/secrets/public-key
98func (s *CodespacesService) GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error) {
99 return s.getPublicKey(ctx, fmt.Sprintf("orgs/%v/codespaces/secrets/public-key", org))
100}
101
102// GetRepoPublicKey gets the repo public key for encrypting codespace secrets
103//

Callers

nothing calls this directly

Calls 1

getPublicKeyMethod · 0.95

Tested by

no test coverage detected