mirror of
https://github.com/actions/create-github-app-token.git
synced 2026-12-01 14:55:26 +00:00
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:
1 parent
04f8ace9a0
commit
bc256c234b
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user