mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-13 09:51:15 +00:00
SQSCANGHA-31 Stop making SONAR_HOST_URL mandatory
This commit is contained in:
parent
8c56bc3994
commit
44de84c3e8
2 changed files with 0 additions and 22 deletions
17
.github/workflows/qa.yml
vendored
17
.github/workflows/qa.yml
vendored
|
|
@ -45,23 +45,6 @@ jobs:
|
||||||
- name: Assert
|
- name: Assert
|
||||||
run: |
|
run: |
|
||||||
./test/assertFileContains ./output.properties "sonar.projectBaseDir=.*/baseDir"
|
./test/assertFileContains ./output.properties "sonar.projectBaseDir=.*/baseDir"
|
||||||
sonarHostUrlRequiredTest:
|
|
||||||
name: >
|
|
||||||
'SONAR_HOST_URL' is required
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Run action without SONAR_HOST_URL
|
|
||||||
id: runTest
|
|
||||||
uses: ./
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Previous should have failed
|
|
||||||
if: ${{ steps.runTest.outcome == 'success'}}
|
|
||||||
run: |
|
|
||||||
echo "Expected previous step to fail"
|
|
||||||
exit 1
|
|
||||||
dontFailGradleTest:
|
dontFailGradleTest:
|
||||||
name: >
|
name: >
|
||||||
Don't fail on Gradle project
|
Don't fail on Gradle project
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,6 @@ if [[ -z "${SONAR_TOKEN}" ]]; then
|
||||||
echo "============================ WARNING ============================"
|
echo "============================ WARNING ============================"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${SONAR_HOST_URL}" ]]; then
|
|
||||||
echo "This GitHub Action requires the SONAR_HOST_URL env variable."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${SONAR_ROOT_CERT}" ]]; then
|
if [[ -n "${SONAR_ROOT_CERT}" ]]; then
|
||||||
echo "Adding custom root certificate to java certificate store"
|
echo "Adding custom root certificate to java certificate store"
|
||||||
rm -f /tmp/tmpcert.pem
|
rm -f /tmp/tmpcert.pem
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue