Skip to content

Commit 17688a7

Browse files
committed
Remove setuid gosu in favor of "sudo -E PATH=$PATH ..."
Signed-off-by: Tianon Gravi <[email protected]>
1 parent ef79c99 commit 17688a7

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,6 @@ jobs:
238238
with:
239239
go-version: '1.15.2'
240240

241-
- name: Setup gosu
242-
run: |
243-
GOSU=/usr/local/bin/gosu
244-
arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"
245-
sudo wget -O ${GOSU} "https://github.com/tianon/gosu/releases/download/1.12/gosu-$arch"
246-
sudo chmod +x ${GOSU}
247-
sudo chown root ${GOSU}
248-
sudo chmod +s ${GOSU}
249-
250241
- uses: actions/checkout@v2
251242
with:
252243
path: src/github.com/containerd/containerd
@@ -260,10 +251,10 @@ jobs:
260251
env:
261252
RUNC_FLAVOR: ${{ matrix.runc }}
262253
run: |
263-
sudo PATH=$PATH script/setup/install-seccomp
264-
gosu root script/setup/install-runc
265-
gosu root script/setup/install-cni
266-
gosu root script/setup/install-critools
254+
sudo -E PATH=$PATH script/setup/install-seccomp
255+
sudo -E PATH=$PATH script/setup/install-runc
256+
sudo -E PATH=$PATH script/setup/install-cni
257+
sudo -E PATH=$PATH script/setup/install-critools
267258
working-directory: src/github.com/containerd/containerd
268259

269260
- name: Install criu

0 commit comments

Comments
 (0)