File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ get_scan_dir() {
212
212
213
213
# Function to handle self-hosted runner setup.
214
214
self_hosted_helper () {
215
- :
215
+ sudo mkdir -p /opt/hostedtoolcache > /dev/null 2>&1 || true
216
216
}
217
217
218
218
# Function to Setup PHP.
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ self_hosted_helper() {
20
20
sudo ln -sf /usr/bin/apt-get /usr/bin/apt-fast
21
21
trap " sudo rm -f /usr/bin/apt-fast 2>/dev/null" exit
22
22
fi
23
+ sudo mkdir -p /opt/hostedtoolcache > /dev/null 2>&1 || true
23
24
install_packages apt-transport-https ca-certificates curl file make jq unzip autoconf automake gcc g++ gnupg
24
25
}
25
26
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ self_hosted_setup() {
221
221
exit 1
222
222
else
223
223
self_hosted_helper > /dev/null 2>&1
224
- add_env RUNNER_TOOL_CACHE /tmp
224
+ add_env RUNNER_TOOL_CACHE /opt/hostedtoolcache
225
225
fi
226
226
fi
227
227
}
You can’t perform that action at this time.
0 commit comments