Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: The folder 'src' does not exist (base directory = /github/workspace/src) #47

Open
tech-support-gewan opened this issue Sep 11, 2024 · 0 comments
Assignees

Comments

@tech-support-gewan
Copy link

Issue and Steps to Reproduce

I have used this GitHub action in my workflow with the following values:

    - name: SonarQube Scan
      uses: kitabisa/[email protected]
      with:
        host: ${{ secrets.SONARQUBE_HOST }}
        login: ${{ secrets.SONARQUBE_TOKEN }}
        projectBaseDir: "src/"

But I am getting this error:

INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.8.1.3023
INFO: Java 11.0.20 Alpine (64-bit)
INFO: Linux 6.5.0-1025-azure amd64
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Analyzing on SonarQube server [9](https://github.com/Gewan-India/devops-test/actions/runs/10809438248/job/29984550459#step:5:10).9.5.90363
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=1393ms
INFO: Server id: 736F6203-AYRsg0HO2a-owyg6YC5-
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=631ms
INFO: Load/download plugins (done) | time=535[10](https://github.com/Gewan-India/devops-test/actions/runs/10809438248/job/29984550459#step:5:11)ms
INFO: Process project properties
ERROR: Invalid value of sonar.sources for devops-test
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:05.932s
INFO: Final Memory: 8M/30M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: The folder 'src' does not exist for 'devops-test' (base directory = /github/workspace/src)
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

Through some debugging , I have ensured that the folder does exist with all other files in the repository. Not sure what is causing the issue.

Screenshots

image

Specifications

  • Version: v1.2.0
  • Platform: Ubuntu
  • Subsystem: Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants