Skip to content

Commit 94429eb

Browse files
authored
Try avoiding sudo gpg
1 parent 436725f commit 94429eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/setup-docker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ system_profiler SPHardwareDataType || true
287287

288288
core.debug('add apt-key');
289289
await shell(`
290-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
290+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor | sudo cat >/usr/share/keyrings/docker-archive-keyring.gpg
291291
`);
292292

293293
message = 'add apt source';

0 commit comments

Comments
 (0)