Skip to content

Commit a668287

Browse files
committed
Use sudo instead of su and propagate PATH
1 parent 2e6a743 commit a668287

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: sudo -u compass PATH=$PATH bash -e {0}
9696
container:
9797
image: rockylinux:9
9898
volumes:

0 commit comments

Comments
 (0)