Unable to create project from Github Actions

ALM - GitHub
CI - GitHubActions
command: ./gradlew sonarqube -Dsonar.branch=main
Languages of the repository: Kotlin Gradle

Expected: If there is no project with a specified project key and name, the Gradle command should create a sonarcloud project
Actual: Not able to create a project from GitHub actions, but when I tried the same command locally I was able to create the project.

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Check out actions repository
        uses: actions/checkout@v2
        with:
          ref: v0.8.3
          repository: org/remote-gh-actions
          token: ${{ secrets.org }}
          path: ./.github/actions

      - name: Setup JDK 17
        uses: actions/setup-java@v3
        with:
          java-version: "17"
          distribution: "corretto"

      - name: Tests & Coverage
        run: |
          ./gradlew -s test --fail-fast intTest --fail-fast jacocoTestReport
          ./gradlew sonarqube -Dsonar.branch=main -Dsonar.projectKey=kotlin-springboot -Dsonar.projectName=kotlin-springboot

Hi @Jaya_KN ,

Can you attach the GitLab logs of the failed attempt?

Hi @Joe
Below the error log

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sonarqube'.
> Could not find a default branch to fall back on.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
> Task :sonarqube FAILED

Can you add -d to get debug logs to your ./gradlew sonarqube command?

./gradlew -d sonarqube -Dsonar.branch=main -Dsonar.projectKey=kotlin-springboot -Dsonar.projectName=kotlin-springboot