Registry /
auth / bradleyfalzon-ghinstallation
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ghinstallation
✓ github.com/bradleyfalzon/ghinstallation
Creates an authenticated HTTP client for a GitHub App installation using a private key file.
package main
import (
"net/http"
"github.com/bradleyfalzon/ghinstallation"
)
func main() {
itr, err := ghinstallation.NewKeyFromFile(http.DefaultTransport, 12345, 67890, "path/to/key.pem")
if err != nil {
panic(err)
}
client := &http.Client{Transport: itr}
resp, err := client.Get("https://api.github.com/installation/repositories")
if err != nil {
panic(err)
}
defer resp.Body.Close()
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.