mirror of
				https://git.mirrors.martin98.com/https://github.com/docker/setup-docker-action
				synced 2025-11-01 05:11:06 +08:00 
			
		
		
		
	remove uuid package and switch to crypto
This commit is contained in:
		
							parent
							
								
									7bb565780b
								
							
						
					
					
						commit
						47611ea40b
					
				| @ -27,8 +27,7 @@ | ||||
|   "packageManager": "yarn@3.6.3", | ||||
|   "dependencies": { | ||||
|     "@actions/core": "^1.11.1", | ||||
|     "@docker/actions-toolkit": "^0.40.0", | ||||
|     "uuid": "^10.0.0" | ||||
|     "@docker/actions-toolkit": "^0.40.0" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@types/node": "^20.6.0", | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| import * as crypto from 'crypto'; | ||||
| import os from 'os'; | ||||
| import path from 'path'; | ||||
| import * as uuid from 'uuid'; | ||||
| import * as core from '@actions/core'; | ||||
| import * as actionsToolkit from '@docker/actions-toolkit'; | ||||
| import {Install} from '@docker/actions-toolkit/lib/docker/install'; | ||||
| @ -13,7 +13,7 @@ actionsToolkit.run( | ||||
|   // main
 | ||||
|   async () => { | ||||
|     const input: context.Inputs = context.getInputs(); | ||||
|     const runDir = path.join(os.homedir(), `setup-docker-action-${uuid.v4().slice(0, 8)}`); | ||||
|     const runDir = path.join(os.homedir(), `setup-docker-action-${crypto.randomUUID().slice(0, 8)}`); | ||||
| 
 | ||||
|     if (input.context == 'default') { | ||||
|       throw new Error(`'default' context cannot be used.`); | ||||
|  | ||||
							
								
								
									
										10
									
								
								yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								yarn.lock
									
									
									
									
									
								
							| @ -3374,7 +3374,6 @@ __metadata: | ||||
|     ts-jest: ^29.1.1 | ||||
|     ts-node: ^10.9.1 | ||||
|     typescript: ^5.2.2 | ||||
|     uuid: ^10.0.0 | ||||
|   languageName: unknown | ||||
|   linkType: soft | ||||
| 
 | ||||
| @ -7107,15 +7106,6 @@ __metadata: | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| "uuid@npm:^10.0.0": | ||||
|   version: 10.0.0 | ||||
|   resolution: "uuid@npm:10.0.0" | ||||
|   bin: | ||||
|     uuid: dist/bin/uuid | ||||
|   checksum: 4b81611ade2885d2313ddd8dc865d93d8dccc13ddf901745edca8f86d99bc46d7a330d678e7532e7ebf93ce616679fb19b2e3568873ac0c14c999032acb25869 | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| "uuid@npm:^3.3.2, uuid@npm:^3.3.3": | ||||
|   version: 3.4.0 | ||||
|   resolution: "uuid@npm:3.4.0" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 CrazyMax
						CrazyMax