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)
| 69 | // |
| 70 | //meta:operation GET /repos/{owner}/{repo}/actions/secrets/public-key |
| 71 | func (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 | // |