SQCPPGHA-9 Extend action to support C, C++, and Objective-C projects (#161)

This commit is contained in:
Antonio Aversa
2024-12-16 10:24:14 +01:00
committed by GitHub
parent 844ce2710b
commit 00e62e1190
19 changed files with 1118 additions and 22 deletions

8
scripts/cert.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if [[ -n "${SONAR_ROOT_CERT}" ]]; then
echo "Adding custom root certificate to java certificate store"
rm -f /tmp/tmpcert.pem
echo "${SONAR_ROOT_CERT}" > /tmp/tmpcert.pem
keytool -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias sonarqube -file /tmp/tmpcert.pem
fi