diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 1f26d44..f4b3f10 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -46,7 +46,7 @@ jobs: - name: Assert run: | ls -la ./test - ./test/assertFileContains ./output.properties "sonar.projectBaseDir=.*/baseDir" + ./test/assertFileContains.sh ./output.properties "sonar.projectBaseDir=.*/baseDir" # sonarHostUrlRequiredTest: # name: > # 'SONAR_HOST_URL' is required diff --git a/Dockerfile b/Dockerfile index 512e1e5..cd367c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,12 @@ ENV LC_ALL="C.UTF-8" WORKDIR /opt -USER 0 +USER root + +COPY test/assertFileExists.sh /test/assertFileExists.sh +COPY test/assertFileContains.sh /test/assertFileContains.sh +RUN chmod 755 /test/assertFileExists.sh +RUN chmod 755 /test/assertFileContains.sh # Prepare entrypoint COPY entrypoint.sh /entrypoint.sh diff --git a/test/assertFileContains b/test/assertFileContains.sh similarity index 100% rename from test/assertFileContains rename to test/assertFileContains.sh diff --git a/test/assertFileExists b/test/assertFileExists.sh similarity index 100% rename from test/assertFileExists rename to test/assertFileExists.sh