From 1f3c95ed10478c92adcecb7eba9fb1f633718217 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi <64127335+tobias-trabelsi-sonarsource@users.noreply.github.com> Date: Fri, 24 Sep 2021 08:03:04 +0200 Subject: [PATCH] Docker-10 document locales and remove ANSI locale to use the one from the parent image --- Dockerfile | 3 --- README.md | 11 +++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 564c15e..240575f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,6 @@ LABEL version="1.0.0" \ com.github.actions.icon="check" \ com.github.actions.color="green" -# Set up local envs in order to allow for special chars (non-asci) in filenames. -ENV LC_ALL="C.UTF-8" - # https://help.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user USER root diff --git a/README.md b/README.md index 84204ee..b7b95af 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,17 @@ jobs: SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} ``` +If your source code file names contain special characters that are not covered by the locale range of `en_US.UTF-8`, you can configure your desired locale like this: + +```yaml + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + LC_ALL: "ru_RU.UTF-8" +``` + You can change the analysis base directory by using the optional input `projectBaseDir` like this: ```yaml