GetRepoPublicKey gets the repo public key for encrypting codespace secrets Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. Anyone with read access to the repository can use this endpoint. If the repository is private you
(ctx context.Context, owner, repo string)
| 107 | // |
| 108 | //meta:operation GET /repos/{owner}/{repo}/codespaces/secrets/public-key |
| 109 | func (s *CodespacesService) GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error) { |
| 110 | return s.getPublicKey(ctx, fmt.Sprintf("repos/%v/%v/codespaces/secrets/public-key", owner, repo)) |
| 111 | } |
| 112 | |
| 113 | func (s *CodespacesService) getPublicKey(ctx context.Context, url string) (*PublicKey, *Response, error) { |
| 114 | req, err := s.client.NewRequest(ctx, "GET", url, nil) |
nothing calls this directly
no test coverage detected