From 87588e0916f7e5d4c3709c14157615a08656cbdd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 4 Dec 2024 12:09:19 +0200 Subject: Support multiple GitHub app instances --- mod/mod-ci-github.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod/mod-ci-github.hxx') diff --git a/mod/mod-ci-github.hxx b/mod/mod-ci-github.hxx index f97bf05..059801a 100644 --- a/mod/mod-ci-github.hxx +++ b/mod/mod-ci-github.hxx @@ -120,14 +120,16 @@ namespace brep details_url (const build&) const; optional - generate_jwt (const basic_mark& trace, const basic_mark& error) const; + generate_jwt (const string& app_id, + const basic_mark& trace, + const basic_mark& error) const; // Authenticate to GitHub as an app installation. Return the installation // access token (IAT). Issue diagnostics and return nullopt if something // goes wrong. // optional - obtain_installation_access_token (uint64_t install_id, + obtain_installation_access_token (const string& install_id, string jwt, const basic_mark& error) const; -- cgit v1.1