github
ModuleGitHub, through a GitHub App installation.
Contents
use utopia_vcs::GitHub;Rust
pub struct GitHubThe GitHub adapter: a GitHub App installation authenticates with an RS256 app JWT exchanged for an installation access token, both cached under the installation id for a minute less than the JWT lives.
Rust
pub const APP_JWT_EXPIRY: i64 = 60 * 9GitHub App JWT lifetime in seconds: GitHub allows at most ten minutes, nine leave a minute for clock drift.