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

Function revokeActiveInstallationToken

github-actions/utils.ts:67–76  ·  view source on GitHub ↗
(
  githubOrToken: Octokit | string,
)

Source from the content-addressed store, hash-verified

65/** Revoke the specified installation token. */
66export async function revokeActiveInstallationToken(installationToken: string): Promise<void>;
67export async function revokeActiveInstallationToken(
68 githubOrToken: Octokit | string,
69): Promise<void> {
70 if (typeof githubOrToken === 'string') {
71 await new Octokit({auth: githubOrToken, request: {fetch}}).apps.revokeInstallationAccessToken();
72 } else {
73 await githubOrToken.apps.revokeInstallationAccessToken();
74 }
75 info('Revoked installation token used for Angular Robot.');
76}
77
78export const utils = {
79 getAuthTokenFor,

Callers 5

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
main.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected