Rust

github

Module

GitHub, through a GitHub App installation.

Contents

use utopia_vcs::GitHub;
Rust
pub struct GitHub

The 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 * 9

GitHub App JWT lifetime in seconds: GitHub allows at most ten minutes, nine leave a minute for clock drift.