From 8f31b49c99898723f651b28b7a4a121991b3eacf Mon Sep 17 00:00:00 2001 From: Tronje Krop Date: Fri, 17 Jan 2025 13:16:26 +0100 Subject: [PATCH] feat: pass JAVA_TOOL_OPTIONS to docker container This change passes the JAVA_TOOL_OPTIONS to the docker container running the analysis. Doing this allows to setup a custom truststore that can successfully create SSL connections to a codacy-proxy. This allows to transparently authorize upload of results from a CI/CD system without storing Codacy tokens. --- bin/codacy-analysis-cli.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/codacy-analysis-cli.sh b/bin/codacy-analysis-cli.sh index fcf015e5..2701a9e7 100755 --- a/bin/codacy-analysis-cli.sh +++ b/bin/codacy-analysis-cli.sh @@ -39,6 +39,7 @@ run() { --env CODACY_PROJECT_TOKEN="$CODACY_PROJECT_TOKEN" \ --env CODACY_API_TOKEN="$CODACY_API_TOKEN" \ --env CODACY_API_BASE_URL="$CODACY_API_BASE_URL" \ + --env JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS" \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$CODACY_CODE":"$CODACY_CODE" \ ${output_volume} \