Skip to content

Commit 4bcdc2e

Browse files
authored
Merge pull request #25 from mmore500/patch-1
Avoid sudo gpg
2 parents 436725f + 94429eb commit 4bcdc2e

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)