mirror of
				https://git.mirrors.martin98.com/https://github.com/docker/setup-docker-action
				synced 2025-10-31 23:21:05 +08:00 
			
		
		
		
	Merge pull request #49 from crazy-max/dependabot/npm_and_yarn/docker/actions-toolkit-0.16.0
build(deps): bump @docker/actions-toolkit from 0.14.0 to 0.16.0
This commit is contained in:
		
						commit
						d9be6cade4
					
				
							
								
								
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -131,7 +131,7 @@ jobs: | ||||
|         if: always() | ||||
|         uses: crazy-max/ghaction-dump-context@v2 | ||||
| 
 | ||||
|   colima-start-args: | ||||
|   lima-start-args: | ||||
|     runs-on: macos-latest | ||||
|     steps: | ||||
|       - | ||||
| @ -141,7 +141,7 @@ jobs: | ||||
|         name: Set up Docker | ||||
|         uses: ./ | ||||
|         env: | ||||
|           COLIMA_START_ARGS: --cpu 4 --memory 8 --disk 32 --dns 1.1.1.1 --dns 8.8.8.8 --dns-host example.com=1.2.3.4 | ||||
|           LIMA_START_ARGS: --cpus 4 --memory 8 | ||||
| 
 | ||||
|   build-linux: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							| @ -16,7 +16,7 @@ ___ | ||||
| * [Usage](#usage) | ||||
|   * [Quick start](#quick-start) | ||||
|   * [Daemon configuration](#daemon-configuration) | ||||
|   * [Define custom `colima start` arguments (macOS)](#define-custom-colima-start-arguments-macos) | ||||
|   * [Define custom `limactl start` arguments (macOS)](#define-custom-limactl-start-arguments-macos) | ||||
| * [Customizing](#customizing) | ||||
|   * [inputs](#inputs) | ||||
| * [Contributing](#contributing) | ||||
| @ -71,10 +71,10 @@ jobs: | ||||
|             } | ||||
| ``` | ||||
| 
 | ||||
| ### Define custom `colima start` arguments (macOS) | ||||
| ### Define custom `limactl start` arguments (macOS) | ||||
| 
 | ||||
| You can define custom [`colima start` arguments](https://github.com/abiosoft/colima#customizing-the-vm) | ||||
| using the `COLIMA_START_ARGS` environment variable to customize the VM: | ||||
| You can define custom [`limactl start` arguments](https://lima-vm.io/docs/reference/limactl_start/) | ||||
| using the `LIMA_START_ARGS` environment variable to customize the VM: | ||||
| 
 | ||||
| ```yaml | ||||
| name: ci | ||||
| @ -90,14 +90,14 @@ jobs: | ||||
|         name: Set up Docker | ||||
|         uses: crazy-max/ghaction-setup-docker@v2 | ||||
|         env: | ||||
|           COLIMA_START_ARGS: --cpu 4 --memory 8 --disk 32 | ||||
|           LIMA_START_ARGS: --cpus 4 --memory 8 | ||||
| ``` | ||||
| 
 | ||||
| ## Customizing | ||||
| 
 | ||||
| ### inputs | ||||
| 
 | ||||
| Following inputs can be used as `step.with` keys | ||||
| The following inputs can be used as `step.with` keys | ||||
| 
 | ||||
| | Name            | Type   | Default               | Description                                                                                                                 | | ||||
| |-----------------|--------|-----------------------|-----------------------------------------------------------------------------------------------------------------------------| | ||||
|  | ||||
| @ -1,56 +0,0 @@ | ||||
| # Troubleshooting | ||||
| 
 | ||||
| ## macOS: `qemu[stderr]: qemu-system-x86_64: Unknown Error` | ||||
| 
 | ||||
| Colima may fail to start with the following error: | ||||
| 
 | ||||
| ``` | ||||
| time="2023-08-26T06:30:33Z" level=info msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/runner/.lima/colima/serial*.log\")" | ||||
| time="2023-08-26T06:30:34Z" level=info msg="SSH Local Port: 49209" | ||||
| time="2023-08-26T06:30:34Z" level=info msg="[hostagent] Waiting for the essential requirement 1 of 3: \"ssh\"" | ||||
| time="2023-08-26T06:30:34Z" level=info msg="[hostagent] Driver stopped due to error: \"exit status 255\"" | ||||
| time="2023-08-26T06:30:34Z" level=info msg="[hostagent] Shutting down the host agent" | ||||
| time="2023-08-26T06:30:34Z" level=warning msg="[hostagent] failed to exit SSH master" | ||||
| time="2023-08-26T06:30:34Z" level=info msg="[hostagent] Shutting down QEMU with ACPI" | ||||
| time="2023-08-26T06:30:34Z" level=warning msg="[hostagent] failed to open the QMP socket \"/Users/runner/.lima/colima/qmp.sock\", forcibly killing QEMU" | ||||
| time="2023-08-26T06:30:34Z" level=info msg="[hostagent] QEMU has already exited" | ||||
| time="2023-08-26T06:30:34Z" level=fatal msg="exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see \"/Users/runner/.lima/colima/ha.stderr.log\")" | ||||
| time="2023-08-26T06:30:34Z" level=fatal msg="error starting vm: error at 'creating and starting': exit status 1" | ||||
| ``` | ||||
| 
 | ||||
| ``` | ||||
| {"level":"debug","msg":"executing [ssh-keygen -t ed25519 -q -N  -f /Users/runner/.lima/_config/user]","time":"2023-08-26T07:16:40Z"} | ||||
| {"level":"debug","msg":"Creating iso file /Users/runner/.lima/colima/cidata.iso","time":"2023-08-26T07:16:41Z"} | ||||
| {"level":"debug","msg":"Using /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/diskfs_iso3418167253 as workspace","time":"2023-08-26T07:16:41Z"} | ||||
| {"level":"debug","msg":"OpenSSH version 8.6.1 detected","time":"2023-08-26T07:16:41Z"} | ||||
| {"level":"debug","msg":"AES accelerator seems available, prioritizing aes128-gcm@openssh.com and aes256-gcm@openssh.com","time":"2023-08-26T07:16:41Z"} | ||||
| {"level":"debug","msg":"QEMU version 8.0.4 detected","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"debug","msg":"firmware candidates = [/Users/runner/.local/share/qemu/edk2-x86_64-code.fd /Users/runner/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/share/qemu/edk2-x86_64-code.fd /usr/share/OVMF/OVMF_CODE.fd /usr/share/qemu/ovmf-x86_64-code.bin /usr/share/edk2-ovmf/x64/OVMF_CODE.fd]","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"info","msg":"Starting QEMU (hint: to watch the boot progress, see \"/Users/runner/.lima/colima/serial*.log\")","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"debug","msg":"qCmd.Args: [/Users/runner/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/bin/qemu-system-x86_64 -m 2048 -cpu host,-pdpe1gb -machine q35,accel=hvf -smp 2,sockets=1,cores=2,threads=1 -drive if=pflash,format=raw,readonly=on,file=/Users/runner/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/share/qemu/edk2-x86_64-code.fd -boot order=d,splash-time=0,menu=on -drive file=/Users/runner/.lima/colima/basedisk,format=raw,media=cdrom,readonly=on -drive file=/Users/runner/.lima/colima/diffdisk,if=virtio,discard=on -drive id=cdrom0,if=none,format=raw,readonly=on,file=/Users/runner/.lima/colima/cidata.iso -device virtio-scsi-pci,id=scsi0 -device scsi-cd,bus=scsi0.0,drive=cdrom0 -netdev user,id=net0,net=192.168.5.0/24,dhcpstart=192.168.5.15,hostfwd=tcp:127.0.0.1:49168-:22 -device virtio-net-pci,netdev=net0,mac=52:55:55:be:6e:dd -device virtio-rng-pci -display none -device virtio-vga -device virtio-keyboard-pci -device virtio-mouse-pci -device qemu-xhci,id=usb-bus -parallel none -chardev socket,id=char-serial,path=/Users/runner/.lima/colima/serial.sock,server=on,wait=off,logfile=/Users/runner/.lima/colima/serial.log -serial chardev:char-serial -chardev socket,id=char-serial-virtio,path=/Users/runner/.lima/colima/serialv.sock,server=on,wait=off,logfile=/Users/runner/.lima/colima/serialv.log -device virtio-serial-pci,id=virtio-serial0,max_ports=1 -device virtconsole,chardev=char-serial-virtio,id=console0 -virtfs local,mount_tag=mount0,path=/Users/runner,security_model=none -virtfs local,mount_tag=mount1,path=/tmp/colima,security_model=none -chardev socket,id=char-qmp,path=/Users/runner/.lima/colima/qmp.sock,server=on,wait=off -qmp chardev:char-qmp -name lima-colima -pidfile /Users/runner/.lima/colima/qemu.pid]","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"info","msg":"Waiting for the essential requirement 1 of 3: \"ssh\"","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"debug","msg":"executing script \"ssh\"","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/runner/.lima/_config/user\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^aes128-gcm@openssh.com,aes256-gcm@openssh.com\" -o User=runner -o ControlMaster=auto -o ControlPath=\"/Users/runner/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 49168 127.0.0.1 -- /bin/bash]","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"debug","msg":"stdout=\"\", stderr=\"ssh: connect to host 127.0.0.1 port 49168: Connection refused\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"ssh: connect to host 127.0.0.1 port 49168: Connection refused\\r\\n\": exit status 255","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"debug","msg":"qemu[stderr]: qemu-system-x86_64: Unknown Error","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"info","msg":"Driver stopped due to error: \"exit status 255\"","time":"2023-08-26T07:16:43Z"} | ||||
| {"level":"info","msg":"Shutting down the host agent","time":"2023-08-26T07:16:44Z"} | ||||
| {"level":"debug","msg":"shutting down the SSH master","time":"2023-08-26T07:16:44Z"} | ||||
| {"level":"debug","msg":"executing ssh for exiting the master: /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/runner/.lima/_config/user\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^aes128-gcm@openssh.com,aes256-gcm@openssh.com\" -o User=runner -o ControlMaster=auto -o ControlPath=\"/Users/runner/.lima/colima/ssh.sock\" -o ControlPersist=5m -O exit -p 49168 127.0.0.1]","time":"2023-08-26T07:16:44Z"} | ||||
| {"error":"failed to execute `ssh -O exit -p 49168 127.0.0.1`, out=\"Control socket connect(/Users/runner/.lima/colima/ssh.sock): No such file or directory\\r\\n\": exit status 255","level":"warning","msg":"failed to exit SSH master","time":"2023-08-26T07:16:44Z"} | ||||
| {"level":"info","msg":"Shutting down QEMU with ACPI","time":"2023-08-26T07:16:44Z"} | ||||
| {"error":"dial unix /Users/runner/.lima/colima/qmp.sock: connect: connection refused","level":"warning","msg":"failed to open the QMP socket \"/Users/runner/.lima/colima/qmp.sock\", forcibly killing QEMU","time":"2023-08-26T07:16:44Z"} | ||||
| {"level":"info","msg":"QEMU has already exited","time":"2023-08-26T07:16:44Z"} | ||||
| ``` | ||||
| 
 | ||||
| To fix this issue you can replace the existing signature of QEMU binary with | ||||
| the required entitlements as suggested in https://github.com/abiosoft/colima/issues/786#issuecomment-1693629650. | ||||
| This can be done within this action by setting the env var `SIGN_QEMU_BINARY=1`: | ||||
| 
 | ||||
| ```yaml | ||||
|       - | ||||
|         name: Set up Docker | ||||
|         uses: crazy-max/ghaction-setup-docker@v2 | ||||
|         env: | ||||
|           SIGN_QEMU_BINARY: 1 | ||||
| ``` | ||||
							
								
								
									
										10
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										25
									
								
								dist/licenses.txt
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								dist/licenses.txt
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -977,31 +977,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
| THE SOFTWARE. | ||||
| 
 | ||||
| 
 | ||||
| js-yaml | ||||
| MIT | ||||
| (The MIT License) | ||||
| 
 | ||||
| Copyright (C) 2011-2015 by Vitaly Puzrin | ||||
| 
 | ||||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
| of this software and associated documentation files (the "Software"), to deal | ||||
| in the Software without restriction, including without limitation the rights | ||||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
| copies of the Software, and to permit persons to whom the Software is | ||||
| furnished to do so, subject to the following conditions: | ||||
| 
 | ||||
| The above copyright notice and this permission notice shall be included in | ||||
| all copies or substantial portions of the Software. | ||||
| 
 | ||||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
| THE SOFTWARE. | ||||
| 
 | ||||
| 
 | ||||
| jwt-decode | ||||
| MIT | ||||
| The MIT License (MIT) | ||||
|  | ||||
| @ -27,7 +27,7 @@ | ||||
|   "packageManager": "yarn@3.6.3", | ||||
|   "dependencies": { | ||||
|     "@actions/core": "^1.10.1", | ||||
|     "@docker/actions-toolkit": "^0.14.0", | ||||
|     "@docker/actions-toolkit": "^0.16.0", | ||||
|     "uuid": "^9.0.1" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|  | ||||
							
								
								
									
										48
									
								
								yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										48
									
								
								yarn.lock
									
									
									
									
									
								
							| @ -900,9 +900,9 @@ __metadata: | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| "@docker/actions-toolkit@npm:^0.14.0": | ||||
|   version: 0.14.0 | ||||
|   resolution: "@docker/actions-toolkit@npm:0.14.0" | ||||
| "@docker/actions-toolkit@npm:^0.16.0": | ||||
|   version: 0.16.0 | ||||
|   resolution: "@docker/actions-toolkit@npm:0.16.0" | ||||
|   dependencies: | ||||
|     "@actions/cache": ^3.2.2 | ||||
|     "@actions/core": ^1.10.1 | ||||
| @ -911,16 +911,15 @@ __metadata: | ||||
|     "@actions/http-client": ^2.2.0 | ||||
|     "@actions/io": ^1.1.3 | ||||
|     "@actions/tool-cache": ^2.0.1 | ||||
|     "@octokit/core": ^5.0.1 | ||||
|     "@octokit/plugin-rest-endpoint-methods": ^10.1.5 | ||||
|     "@octokit/core": ^5.0.2 | ||||
|     "@octokit/plugin-rest-endpoint-methods": ^10.2.0 | ||||
|     async-retry: ^1.3.3 | ||||
|     csv-parse: ^5.5.2 | ||||
|     csv-parse: ^5.5.3 | ||||
|     handlebars: ^4.7.8 | ||||
|     js-yaml: ^4.1.0 | ||||
|     jwt-decode: ^4.0.0 | ||||
|     semver: ^7.5.4 | ||||
|     tmp: ^0.2.1 | ||||
|   checksum: dbbdf6cbd962eb05b9ec2d3026a1cf97394839c4e595ec047efe5595ca773f8c3927e03b64a98469da96e56038e16d3d0ad91c500be787087777f14406cc9248 | ||||
|   checksum: af2cfcee8a4b3e3ae46706a7f9f0ccdcecbfcf0b7b4f753b3f41e52256a8ece2446866f4f08c996f3aa50cd4047ec48258d9c571c22c2d1f0ebb3f2e36ff1270 | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| @ -1417,6 +1416,21 @@ __metadata: | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| "@octokit/core@npm:^5.0.2": | ||||
|   version: 5.0.2 | ||||
|   resolution: "@octokit/core@npm:5.0.2" | ||||
|   dependencies: | ||||
|     "@octokit/auth-token": ^4.0.0 | ||||
|     "@octokit/graphql": ^7.0.0 | ||||
|     "@octokit/request": ^8.0.2 | ||||
|     "@octokit/request-error": ^5.0.0 | ||||
|     "@octokit/types": ^12.0.0 | ||||
|     before-after-hook: ^2.2.0 | ||||
|     universal-user-agent: ^6.0.0 | ||||
|   checksum: 9ce060d61577f6805901ae5c33b2764a441db119ae0cca09104adf37b119cce68b656220de56c0c5004c9c9c1c892a7fdfbe9c0b1f5e398cb359dfd39c57eca8 | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| "@octokit/endpoint@npm:^9.0.0": | ||||
|   version: 9.0.1 | ||||
|   resolution: "@octokit/endpoint@npm:9.0.1" | ||||
| @ -1475,14 +1489,14 @@ __metadata: | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| "@octokit/plugin-rest-endpoint-methods@npm:^10.1.5": | ||||
|   version: 10.1.5 | ||||
|   resolution: "@octokit/plugin-rest-endpoint-methods@npm:10.1.5" | ||||
| "@octokit/plugin-rest-endpoint-methods@npm:^10.2.0": | ||||
|   version: 10.2.0 | ||||
|   resolution: "@octokit/plugin-rest-endpoint-methods@npm:10.2.0" | ||||
|   dependencies: | ||||
|     "@octokit/types": ^12.3.0 | ||||
|   peerDependencies: | ||||
|     "@octokit/core": ">=5" | ||||
|   checksum: 01b79eac7f1f5663c8bdb2f27a209873cebdf664b15712b4cc1f363f2a9df60f217e03af67a07000a4a7a70191080716ccc6d9fa454258f5cb2a09ef18723ee9 | ||||
|   checksum: 3209688bf508d22a525fe32d632ff928b048688c1859c7e4bbb08bd181aa07f580b375a502e34368628103e5d5cccf7f9fb0ff0c8fd4262470ac8eeffb80ac6b | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| @ -2617,10 +2631,10 @@ __metadata: | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| "csv-parse@npm:^5.5.2": | ||||
|   version: 5.5.2 | ||||
|   resolution: "csv-parse@npm:5.5.2" | ||||
|   checksum: de2eb0c29b049783ef101b7eb843456200dc9a4fc9f4b400473bb0521b41aadb77af560cf4edc49bac65cc457b32596519860120181b26ec3b372109ddf8e8ea | ||||
| "csv-parse@npm:^5.5.3": | ||||
|   version: 5.5.3 | ||||
|   resolution: "csv-parse@npm:5.5.3" | ||||
|   checksum: 38399bc4c61b721bc2f52a6262d6000b4e5f391e45b071f6eb087b293a02f867020f7da36adf6f56eb9fb45bd28c82cd223afd35846551fb5ad31bf3d0602961 | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| @ -2747,7 +2761,7 @@ __metadata: | ||||
|   resolution: "docker-setup-docker@workspace:." | ||||
|   dependencies: | ||||
|     "@actions/core": ^1.10.1 | ||||
|     "@docker/actions-toolkit": ^0.14.0 | ||||
|     "@docker/actions-toolkit": ^0.16.0 | ||||
|     "@types/node": ^20.6.0 | ||||
|     "@typescript-eslint/eslint-plugin": ^6.6.0 | ||||
|     "@typescript-eslint/parser": ^6.6.0 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 CrazyMax
						CrazyMax