diff --git a/bin/build_container b/bin/build_container index 6eb1666f5..6a0e01a88 100755 --- a/bin/build_container +++ b/bin/build_container @@ -18,7 +18,7 @@ if [ $NEED_SUDO -eq 0 ]; then FAKEROOT=--fakeroot echo "Using fakeroot" else - if [[ `groups` == *"sudo"* ]]; then + if [[ ! -z "$GITHUB_RUN_ID" || `groups` == *"sudo"* ]]; then # user has sudo permission SUDO=sudo FAKEROOT=""