MCPcopy Create free account
hub / github.com/angular/dev-infra / getJwtAuthedAppClient

Function getJwtAuthedAppClient

github-actions/utils.ts:14–22  ·  view source on GitHub ↗

Create a JWT authenticated App client to manage installation tokens.

([appId, inputKey]: GithubAppMetadata)

Source from the content-addressed store, hash-verified

12
13/** Create a JWT authenticated App client to manage installation tokens. */
14async function getJwtAuthedAppClient([appId, inputKey]: GithubAppMetadata) {
15 /** The private key for the angular robot app. */
16 const privateKey = getInput(inputKey, {required: true});
17
18 return new Octokit({
19 authStrategy: createAppAuth,
20 auth: {appId, privateKey},
21 });
22}
23
24// Local types for Org and Repo to make the typings in getAuthTokenFor more readable.
25type Org = {org: string};

Callers 1

getAuthTokenForFunction · 0.85

Calls 1

getInputFunction · 0.85

Tested by

no test coverage detected