GitHub Actions Build Failed : Project not found

Hi all,

I have my project set up in SonarQube cloud, binded, token generated but status says never used.

At each Github action trigger, analysis takes place on sonarqube cloud but the build failed with these error:

Error: Error retrieving feature flags, using default analyzer behavior

Project not found. Please check the ‘sonar.projectKey’ and ‘sonar.organization’ properties, the ‘SONAR_TOKEN’ environment variable, or contact the project administrator to check the permissions of the user the token belongs to

\[INFO\] Inferred api base url ‘[https://api.sonarcloud.io](https://api.sonarcloud.io/)’ from host url ‘[https://sonarcloud.io](https://sonarcloud.io/)’.
\[INFO\] Check ALM binding of project ‘Feawos_Order-Management-REST-API’
Warning:  Failed to check if project ‘Feawos_Order-Management-REST-API’ is bound
\[INFO\] Detected project binding: ERROR
\[INFO\] Check ALM binding of project ‘Feawos_Order-Management-REST-API’ (done) | time=155ms
\[INFO\] Load project pull requests
\[INFO\] Load project pull requests (done) | time=163ms
\[INFO\] Load branch configuration
\[INFO\] Github event: push
\[INFO\] Auto-configuring branch main
\[INFO\] Load branch configuration (done) | time=5ms
\[INFO\] Load quality profiles
\[INFO\] Load quality profiles (done) | time=319ms
\[INFO\] Inferred api base url ‘[https://api.sonarcloud.io](https://api.sonarcloud.io/)’ from host url ‘[https://sonarcloud.io](https://sonarcloud.io/)’.
\[INFO\] Create analysis
\[INFO\] ------------------------------------------------------------------------
\[INFO\] BUILD FAILURE
\[INFO\] ------------------------------------------------------------------------
\[INFO\] Total time:  37.470 s
\[INFO\] Finished at: 2026-04-07T19:51:06Z
\[INFO\] ------------------------------------------------------------------------
Error:  Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.10.0.2594:sonar (default-cli) on project ordermanagement: Project not found. Please check the ‘sonar.projectKey’ and ‘sonar.organization’ properties, the ‘SONAR_TOKEN’ environment variable, or contact the project administrator to check the permissions of the user the token belongs to → \[Help 1\]
Error:
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error:
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  \[Help 1\] [http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException](http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException)
Error: Process completed with exit code 1.

Looking forward to your help.

Thanks.

Hi,

Welcome to the community!

I can see from the log snippet you’ve provided that you did provide a project key to analysis.

Now it’s time to double-check the Org ID and the token.

 
HTH,
Ann

Thanks Ann, I have the correct Org ID in my workflow and the token in github, all correct but the build failed.

Hi,

You should double-check that because the error message you’re getting indicates that one of those three values is missing or wrong.

 
Ann

I have double checked a few times, seem not to see where the issue is, please see my set up below.

workflow:

  • name: Cache Sonar packages
    uses: actions/cache@v4
    with:
    path: ~/.sonar/cache
    key: ${{ runner.os }}-sonar
    restore-keys: ${{ runner.os }}-sonar
  • name: Build, Test and Analyze
    env:
    SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
    SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    run: |
    mvn clean verify sonar:sonar
    -Dspring.profiles.active=test
    -Dsonar.login=$SONAR_TOKEN
    -Dsonar.projectKey=Feawos_Order-Management-REST-API
    -Dsonar.organization=feawos
    -Dsonar.host.url=https://sonarcloud.io
    -Dsonar.qualitygate.wait=true

Github actions:
Environment secrets
Name
Environmentsort ascending

Last updated
sort ascending
DOCKERHUB_TOKEN
Test
2 weeks ago
DOCKERHUB_USERNAME
Test
2 weeks ago
SONAR_HOST_URL
Test
6 minutes ago
SONAR_TOKEN
Test
29 minutes ago

sonarqube:
Existing Tokens

Name
Last used
Created
Scheduled expiry


GithubActionToken
Never
10 April 2026
9 June 2026


Feawos
Order-Management-REST-API

New

Public
Last analysis: 10/04/2026, 13:50
654 Lines of Code
Java, XML, …

Hi,

You’re using (potentially) two different token values here. TBH, I don’t remember which one is going to win. But you should whittle this down to 1 and make sure it’s correct.

 
HTH,
Ann