fix: mask the installation token in logs (#28)

The runner will automatically mask GitHub token formats it recognizes,
but sometimes a new pattern rolls out before the runner is updated to
recognize it.
This commit is contained in:
Parker Brown
2023-08-25 11:59:01 -07:00
committed by GitHub
parent 04f8ace9a0
commit bc256c234b
+3
View File
@@ -52,6 +52,9 @@ export async function main(
repositoryNames: [repo],
});
// Register the token with the runner as a secret to ensure it is masked in logs
core.setSecret(authentication.token);
core.setOutput("token", authentication.token);
// Make token accessible to post function (so we can invalidate it)