Docker-10 document locales and remove ANSI locale to use the one from the parent image

This commit is contained in:
Tobias Trabelsi 2021-09-24 08:03:04 +02:00 committed by GitHub
parent 495aa71ae8
commit 1f3c95ed10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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