test: add coverage (#58)

This commit is contained in:
Gregor Martynus
2023-10-06 12:54:48 -07:00
committed by GitHub
parent 9b283559f1
commit bdb2377ad0
6 changed files with 1684 additions and 5 deletions

View File

@@ -100,6 +100,7 @@ export async function main(
authorization: `bearer ${appAuthentication.token}`,
},
}).catch((error) => {
/* c8 ignore next */
if (error.status !== 404) throw error;
// https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-a-user-installation-for-the-authenticated-app
@@ -122,7 +123,7 @@ export async function main(
core.setSecret(authentication.token);
core.setOutput("token", authentication.token);
// Make token accessible to post function (so we can invalidate it)
if (!skipTokenRevoke) {
core.saveState("token", authentication.token);