Skip to content

Commit bc256c2

Browse files
authored
fix: mask the installation token in logs (actions#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.
1 parent 04f8ace commit bc256c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export async function main(
5252
repositoryNames: [repo],
5353
});
5454

55+
// Register the token with the runner as a secret to ensure it is masked in logs
56+
core.setSecret(authentication.token);
57+
5558
core.setOutput("token", authentication.token);
5659

5760
// Make token accessible to post function (so we can invalidate it)

0 commit comments

Comments
 (0)