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:
@@ -52,6 +52,9 @@ export async function main(
|
|||||||
repositoryNames: [repo],
|
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);
|
core.setOutput("token", authentication.token);
|
||||||
|
|
||||||
// Make token accessible to post function (so we can invalidate it)
|
// Make token accessible to post function (so we can invalidate it)
|
||||||
|
|||||||
Reference in New Issue
Block a user