Skip to content

Commit

Permalink
fix: mask the installation token in logs (actions#28)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
parkerbxyz committed Aug 25, 2023
1 parent 04f8ace commit bc256c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc256c2

Please sign in to comment.