Skip to content

Commit 44978d0

Browse files
committed
Use sudo instead of su
1 parent 2e6a743 commit 44978d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test-installers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
adduser compass
9393
echo "compass ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
9494
# Use a shell which switch to the non-root compass user first
95-
shell: bash -e -c "su - compass; source {0}"
95+
shell: bash -e -c "sudo -u compass source {0}"
9696
container:
9797
image: rockylinux:9
9898
volumes:

0 commit comments

Comments
 (0)