From 74189a962e8f1b57175c791062ac9f57fc38442d Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Fri, 22 Sep 2023 14:55:08 +0000 Subject: [PATCH] Add Windows Specific Instructions for Disabling TLS on Self-Hosted Runners (#43059) Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com> --- ...and-troubleshooting-self-hosted-runners.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/content/actions/hosting-your-own-runners/managing-self-hosted-runners/monitoring-and-troubleshooting-self-hosted-runners.md b/content/actions/hosting-your-own-runners/managing-self-hosted-runners/monitoring-and-troubleshooting-self-hosted-runners.md index 1ab0952ea7f7..2a1ee2df0e7d 100644 --- a/content/actions/hosting-your-own-runners/managing-self-hosted-runners/monitoring-and-troubleshooting-self-hosted-runners.md +++ b/content/actions/hosting-your-own-runners/managing-self-hosted-runners/monitoring-and-troubleshooting-self-hosted-runners.md @@ -87,12 +87,34 @@ By default, the self-hosted runner application verifies the TLS certificate for To disable TLS certification verification in the self-hosted runner application, set the `GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY` environment variable to `1` before configuring and running the self-hosted runner application. +{% linux %} + +```shell +export GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY=1 +./config.sh --url https://github.com/YOUR-ORG/YOUR-REPO --token +./run.sh +``` + +{% endlinux %} +{% mac %} + ```shell export GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY=1 ./config.sh --url https://github.com/YOUR-ORG/YOUR-REPO --token ./run.sh ``` +{% endmac %} +{% windows %} + +```powershell +[Environment]::SetEnvironmentVariable('GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY', '1') +./config.cmd --url https://github.com/YOUR-ORG/YOUR-REPO --token +./run.sh +``` + +{% endwindows %} + {% warning %} **Warning**: Disabling TLS verification is not recommended since TLS provides privacy and data integrity between the self-hosted runner application and {% data variables.product.product_name %}. We recommend that you install the {% data variables.product.product_name %} certificate in the operating system certificate store for your self-hosted runner. For guidance on how to install the {% data variables.product.product_name %} certificate, check with your operating system vendor.