Skip to content

Commit 1500f19

Browse files
Ankit GuptaAnkit Gupta
authored andcommitted
key generation changed
1 parent 8fdc0e7 commit 1500f19

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/licenses.txt

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/warpbuild.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ export class WarpBuildRemoteBuilders {
6161
this.apiDomain = process.env.WARPBUILD_API_DOMAIN || 'https://api.warpbuild.com';
6262
this.isWarpBuildRunner = this.determineRunnerType();
6363
// Example output: lq1cr8p2n5x7d3fy
64-
const timestamp = Date.now().toString(36);
65-
const random = Math.random().toString(36).substring(2, 10);
66-
this.idempotencyKey = `${timestamp}${random}`.substring(0, 16);
64+
this.idempotencyKey = uuidv4().replace(/-/g, '').substring(0, 16);
6765
this.builderName = `builder-${this.idempotencyKey}`;
6866

6967
core.debug(`API domain: ${this.apiDomain}`);

0 commit comments

Comments
 (0)