diff options
Diffstat (limited to 'src/github-api-helper.ts')
| -rw-r--r-- | src/github-api-helper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts index bef31e6..db42d37 100644 --- a/src/github-api-helper.ts +++ b/src/github-api-helper.ts @@ -6,7 +6,7 @@ import * as io from '@actions/io' import * as path from 'path' import * as retryHelper from './retry-helper' import * as toolCache from '@actions/tool-cache' -import {v4 as uuid} from 'uuid' +import {randomUUID} from 'crypto' import {getServerApiUrl} from './url-helper' const IS_WINDOWS = process.platform === 'win32' @@ -39,7 +39,7 @@ export async function downloadRepository( // Write archive to disk core.info('Writing archive to disk') - const uniqueId = uuid() + const uniqueId = randomUUID() const archivePath = IS_WINDOWS ? path.join(repositoryPath, `${uniqueId}.zip`) : path.join(repositoryPath, `${uniqueId}.tar.gz`) |
