diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-02-06 16:35:59 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-12-10 11:16:07 +0200 |
commit | abd6ede8444a89b6c56c20d06110cb3923b05bbe (patch) | |
tree | 48600db8ab80599e014c07ad79769469754321c0 /mod/module.cli | |
parent | 1c994eadb89bdafdbeb7e16adcf4f0a55c497942 (diff) |
Get installation access token (IAT) and restructure code
Diffstat (limited to 'mod/module.cli')
-rw-r--r-- | mod/module.cli | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/mod/module.cli b/mod/module.cli index ccfe032..7c07dbc 100644 --- a/mod/module.cli +++ b/mod/module.cli @@ -845,11 +845,36 @@ namespace brep { }; - class ci_github: ci_start, build, build_db, handler + // @@ TODO Is etc/brep-module.conf updated manually? Yes, will need to + // replicate there eventually. + // + class ci_github: ci_start, ci_cancel, + build, build_db, + handler, + openssl_options { - // GitHub CI-specific options (e.g., request timeout when invoking - // GitHub APIs). + // GitHub CI-specific options. // + + size_t ci-github-app-id + { + "<id>", + "The GitHub App ID. Found in the app's settings on GitHub." + } + + path ci-github-app-private-key + { + "<path>", + "The private key used during GitHub API authentication. Created in + the GitHub app's settings." + } + + uint16_t ci-github-jwt-validity-period = 600 + { + "<seconds>", + "The number of seconds a JWT (authentication token) should be valid for. + The maximum allowed by GitHub is 10 minutes." + } }; class upload: build, build_db, build_upload, repository_email, handler |