()
| 243 | } |
| 244 | |
| 245 | func (a *GithubApp) PrivateKeyBytes() ([]byte, error) { |
| 246 | keyBytes, err := os.ReadFile(a.PrivateKeyPath) |
| 247 | if err != nil { |
| 248 | return nil, fmt.Errorf("reading private_key_path: %w", err) |
| 249 | } |
| 250 | return keyBytes, nil |
| 251 | } |
| 252 | |
| 253 | func (a *GithubApp) Validate() error { |
| 254 | if a.AppID == 0 { |
no outgoing calls