Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Jul 18, 2024
1 parent 45d6fea commit 1d06eb1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26330,7 +26330,9 @@ const getLicensingClient = () => {
const maskSerialInOutput = (output) => {
const serialPattern = /([\w-]+-XXXX)/g;
return output.replace(serialPattern, (_, serial) => {
return serial.slice(0, -4) + 'XXXX';
const maskedSerial = serial.slice(0, -4) + `XXXX`;
core.setSecret(maskedSerial);
return serial;
});
};

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/licensing-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ const getLicensingClient = () => {
const maskSerialInOutput = (output) => {
const serialPattern = /([\w-]+-XXXX)/g;
return output.replace(serialPattern, (_, serial) => {
return serial.slice(0, -4) + 'XXXX';
const maskedSerial = serial.slice(0, -4) + `XXXX`;
core.setSecret(maskedSerial);
return serial;
});
};

Expand Down

0 comments on commit 1d06eb1

Please sign in to comment.