From c4351bb5fdfd7891f719593e168e0c873f1fb05c Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:55:28 +0100 Subject: [PATCH] [Ubuntu] Set sticky bit for Ruby hosted toolcache directory (#13665) * [Ubuntu] Set sticky bit for Ruby hosted toolcache directory * Update images/ubuntu/scripts/build/configure-system.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- images/ubuntu/scripts/build/configure-system.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/images/ubuntu/scripts/build/configure-system.sh b/images/ubuntu/scripts/build/configure-system.sh index 4c82e3538..eebeb5e21 100644 --- a/images/ubuntu/scripts/build/configure-system.sh +++ b/images/ubuntu/scripts/build/configure-system.sh @@ -9,10 +9,12 @@ source $HELPER_SCRIPT_FOLDER/os.sh mv -f /imagegeneration/post-generation /opt -echo "chmod -R 777 /opt" -chmod -R 777 /opt echo "chmod -R 777 /usr/share" chmod -R 777 /usr/share +echo "chmod -R 777 /opt" +chmod -R 777 /opt +echo "Setting sticky bit on hostedtoolcache Ruby directories due to the changes in Ruby 4.0; see issue: https://github.com/actions/runner-images/issues/13647" +find /opt/hostedtoolcache/Ruby -type d -exec chmod +t {} + chmod 755 $IMAGE_FOLDER