SONAR-14822 Provide a GitHub Action to scan a project

This commit is contained in:
Wouter Admiraal
2021-05-11 16:37:25 +02:00
committed by Wouter Admiraal
parent 1ef5bf722a
commit 71de302835
8 changed files with 333 additions and 1 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM sonarsource/sonar-scanner-cli:4.6
LABEL version="1.0.0" \
repository="https://github.com/sonarsource/sonarqube-scan-action" \
homepage="https://github.com/sonarsource/sonarqube-scan-action" \
maintainer="SonarSource" \
com.github.actions.name="SonarQube Scan" \
com.github.actions.description="Scan your code with SonarQube to detect Bugs, Vulnerabilities and Code Smells in more than 27 programming languages!" \
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
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]