- We are working on integrating Github action workflow for our salesforce project.
As part of this workflow, we want to send the build output of pull request to sonarcloud and we are receiving the “Project home must be an existing directory:”
Here is the action we have specified:
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v1.2
continue-on-error: true
env:
GITHUB_TOKEN: {{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: {{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: ${{ env.BUILD_OUTPUT_PATH }}/force-app/main/default/
When we download the build output archive we see the properties file is also correctly setup
sonar.organization=
sonar.projectKey=
sonar.projectName=