From f8bbf52decb9250652438b77b28c145671468104 Mon Sep 17 00:00:00 2001 From: Ulysse Bouchet Date: Fri, 23 Oct 2026 14:10:47 +0200 Subject: [PATCH] ci: SonarQube host with a port or plain http The NetBird policy of ci-sonar now only opens port 11005, so SONAR_HOST_URL becomes http(s)://sonar.simvia.internal:11005. The DNS wait extracted the host with sed 's|https://||', which kept the scheme or the port; it now strips any scheme, port and path. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b639ac8..4c563d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -170,7 +170,7 @@ jobs: run: | curl -sSfL https://pkgs.netbird.io/install.sh | sh sudo netbird up --setup-key "$NETBIRD_SETUP_KEY" --hostname "gh-vs-code-aster-$GITHUB_RUN_ID" - host=$(echo "$SONAR_HOST_URL" | sed 's|https://||; s|/.*||') + host=$(echo "$SONAR_HOST_URL" | sed -E 's|^[a-z]+://||; s|[:/].*||') # without scheme, port or path for _ in $(seq 30); do getent hosts "$host" && break; sleep 2; done getent hosts "$host" # Private CA of the internal services, for the Java scanner.