Skip to content

Commit

Permalink
Retest sudo if we fiddle directory perms.
Browse files Browse the repository at this point in the history
  • Loading branch information
daztucker committed Oct 30, 2023
1 parent c2260f4 commit c42f0af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/setup_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ fi
# agent-getpeerid test from running ssh-add as nobody. See
# https://github.com/actions/runner-images/issues/6106
if [ ! -z "$SUDO" ] && ! "$SUDO" -u nobody test -x ~; then
ls -ld / `dirname ~` ~
echo ~ is not executable by nobody, adding perms.
chmod go+x ~
echo Retesting sudo -S
(cd / && "$SUDO" -u nobody -S id </dev/null)
fi

if [ "${TARGETS}" = "kitchensink" ]; then
Expand Down

0 comments on commit c42f0af

Please sign in to comment.