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/** Angular Robot Github app (angular-robot). */
13export const ANGULAR_ROBOT: GithubAppMetadata = [43341, 'angular-robot-key'];
14
15/** Create a JWT authenticated App client to manage installation tokens. */
16async function getJwtAuthedAppClient([appId, inputKey]: GithubAppMetadata): Promise<Octokit> {
17 /** The private key for the angular robot app. */
18 const privateKey = getInput(inputKey, {required: true});
19
20 return new Octokit({
21 authStrategy: createAppAuth,
22 auth: {appId, privateKey},
23 });
24}
25

Callers 1

getAuthTokenForFunction · 0.85

Calls 1

getInputFunction · 0.85

Tested by

no test coverage detected