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