From 400c9e1f9b5147c654246ef6fc27fc6b53c080e4 Mon Sep 17 00:00:00 2001 From: Samuel Loury Date: Thu, 8 Aug 2024 17:56:51 +0200 Subject: [PATCH] fix: Suggest to sonar a directory with the appropriate permissions --- Earthfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Earthfile b/Earthfile index 9642d2d..ce0aeb6 100644 --- a/Earthfile +++ b/Earthfile @@ -180,6 +180,7 @@ sonar: RUN echo sonar.branch.name="$use_branch" >> /app/sonar-project.properties END ENV SONAR_HOST_URL=https://sonarcloud.io + ENV SONAR_USER_HOME=/app/sonar RUN --mount=type=cache,target=/opt/sonar-scanner/.sonar/cache --secret SONAR_TOKEN sonar-scanner -D sonar.python.coverage.reportPaths=/app/output/coverage/coverage.xml SAVE ARTIFACT /app/output /output