mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-01-31 08:53:23 +03:00
SQCPPGHA-9 Extend action to support C, C++, and Objective-C projects (#161)
This commit is contained in:
8
scripts/cert.sh
Executable file
8
scripts/cert.sh
Executable 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
|
||||
Reference in New Issue
Block a user