Skip to content

Commit 6955162

Browse files
tianonestesp
authored andcommitted
Remove setuid gosu in favor of "sudo -E PATH=$PATH ..."
Signed-off-by: Tianon Gravi <[email protected]> (cherry picked from commit 17688a7)
1 parent c562e8d commit 6955162

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -327,16 +327,6 @@ jobs:
327327
with:
328328
go-version: '1.13.15'
329329

330-
- name: Setup gosu
331-
shell: bash
332-
run: |
333-
GOSU=/usr/local/bin/gosu
334-
arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"
335-
sudo wget -O ${GOSU} "https://github.com/tianon/gosu/releases/download/1.12/gosu-$arch"
336-
sudo chmod +x ${GOSU}
337-
sudo chown root ${GOSU}
338-
sudo chmod +s ${GOSU}
339-
340330
- name: Set env
341331
shell: bash
342332
run: |
@@ -352,10 +342,10 @@ jobs:
352342
env:
353343
RUNC_FLAVOR: ${{ matrix.runc }}
354344
run: |
355-
sudo PATH=$PATH script/setup/install-seccomp
356-
gosu root script/setup/install-runc
357-
script/setup/install-cni
358-
script/setup/install-critools
345+
sudo -E PATH=$PATH script/setup/install-seccomp
346+
sudo -E PATH=$PATH script/setup/install-runc
347+
sudo -E PATH=$PATH script/setup/install-cni
348+
sudo -E PATH=$PATH script/setup/install-critools
359349
working-directory: src/github.com/containerd/containerd
360350

361351
- name: Install criu

0 commit comments

Comments
 (0)