diff options
| author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2026-06-16 14:28:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-16 14:28:24 -0400 |
| commit | 6e97fb5586f435ba4f325b363a1c7329470cebf6 (patch) | |
| tree | 2b6598061de682f64aec501b9866a3f48e0903df /src | |
| parent | 056bcb0a7806aa10547f37520cc4cc5075c85328 (diff) | |
Bump @actions/core and @actions/tool-cache and Remove uuid (#2459)
* Bump uuid, @actions/core and @actions/tool-cache
Bumps [uuid](https://github.com/uuidjs/uuid), [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) and [@actions/tool-cache](https://github.com/actions/toolkit/tree/HEAD/packages/tool-cache). These dependencies needed to be updated together.
Updates `uuid` from 9.0.1 to 14.0.0
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v9.0.1...v14.0.0)
Updates `@actions/core` from 1.10.1 to 1.11.1
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)
Updates `@actions/tool-cache` from 2.0.1 to 2.0.2
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/tool-cache/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/tool-cache)
---
updated-dependencies:
- dependency-name: uuid
dependency-version: 14.0.0
dependency-type: direct:production
- dependency-name: "@actions/core"
dependency-version: 1.11.1
dependency-type: direct:production
- dependency-name: "@actions/tool-cache"
dependency-version: 2.0.2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* switch to use crpto.randomUUID
* update license
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aiqiao Yan <55104035+aiqiaoy@users.noreply.github.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/git-auth-helper.ts | 8 | ||||
| -rw-r--r-- | src/github-api-helper.ts | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/git-auth-helper.ts b/src/git-auth-helper.ts index e67db14..1798b10 100644 --- a/src/git-auth-helper.ts +++ b/src/git-auth-helper.ts @@ -8,7 +8,7 @@ import * as path from 'path' import * as regexpHelper from './regexp-helper' import * as stateHelper from './state-helper' import * as urlHelper from './url-helper' -import {v4 as uuid} from 'uuid' +import {randomUUID} from 'crypto' import {IGitCommandManager} from './git-command-manager' import {IGitSourceSettings} from './git-source-settings' @@ -90,7 +90,7 @@ class GitAuthHelper { // Create a temp home directory const runnerTemp = process.env['RUNNER_TEMP'] || '' assert.ok(runnerTemp, 'RUNNER_TEMP is not defined') - const uniqueId = uuid() + const uniqueId = randomUUID() this.temporaryHomePath = path.join(runnerTemp, uniqueId) await fs.promises.mkdir(this.temporaryHomePath, {recursive: true}) @@ -255,7 +255,7 @@ class GitAuthHelper { // Write key const runnerTemp = process.env['RUNNER_TEMP'] || '' assert.ok(runnerTemp, 'RUNNER_TEMP is not defined') - const uniqueId = uuid() + const uniqueId = randomUUID() this.sshKeyPath = path.join(runnerTemp, uniqueId) stateHelper.setSshKeyPath(this.sshKeyPath) await fs.promises.mkdir(runnerTemp, {recursive: true}) @@ -422,7 +422,7 @@ class GitAuthHelper { assert.ok(runnerTemp, 'RUNNER_TEMP is not defined') // Create a unique filename for this checkout instance - const configFileName = `git-credentials-${uuid()}.config` + const configFileName = `git-credentials-${randomUUID()}.config` this.credentialsConfigPath = path.join(runnerTemp, configFileName) core.debug(`Credentials config path: ${this.credentialsConfigPath}`) 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`) |
