diff --git a/.github/workflows/sonarcloud-audit.yml b/.github/workflows/sonarcloud-audit.yml index f10380dcb..d5c9f086e 100644 --- a/.github/workflows/sonarcloud-audit.yml +++ b/.github/workflows/sonarcloud-audit.yml @@ -51,7 +51,7 @@ jobs: - name: Run SonarCloud audit env: ORG: ${{ github.repository_owner }} - SONAR_ORG: petry-projects + SONAR_ORG: ${{ github.repository_owner }} REPORT_DIR: ${{ runner.temp }}/sonarcloud-report TARGET_REPO: ${{ inputs.target_repo || '' }} DRY_RUN: ${{ inputs.dry_run || 'false' }} diff --git a/scripts/sonarcloud-audit.sh b/scripts/sonarcloud-audit.sh index 489fd2d60..eae1d4e76 100755 --- a/scripts/sonarcloud-audit.sh +++ b/scripts/sonarcloud-audit.sh @@ -15,7 +15,7 @@ # # Env: # ORG GitHub owner (default: combsmith) -# SONAR_ORG SonarCloud organization (default: petry-projects) +# SONAR_ORG SonarCloud organization (default: combsmith) # SONAR_URL SonarCloud base URL (default: https://sonarcloud.io) # SONAR_TOKEN optional; enables auth (private projects, higher rate limits) # REPORT_DIR output dir (default: mktemp -d) @@ -27,7 +27,7 @@ set -euo pipefail ORG="${ORG:-combsmith}" -SONAR_ORG="${SONAR_ORG:-petry-projects}" +SONAR_ORG="${SONAR_ORG:-combsmith}" SONAR_URL="${SONAR_URL:-https://sonarcloud.io}" SONAR_AUDIT_LABEL="sonarcloud-audit" DRY_RUN="${DRY_RUN:-false}" diff --git a/sonar-project.properties b/sonar-project.properties index 8ff340053..ea194413e 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,5 +1,5 @@ -sonar.projectKey=petry-projects_.github -sonar.organization=petry-projects +sonar.projectKey=combsmith_.github +sonar.organization=combsmith sonar.python.coverage.reportPaths=test/feature-ideation/coverage.xml # SonarCloud S7637 exemption for first-party reusable-ref caller stubs (#498). diff --git a/test/scripts/compliance-audit/sonar-s7637-exemption.bats b/test/scripts/compliance-audit/sonar-s7637-exemption.bats index 903736039..fe0efc2d0 100644 --- a/test/scripts/compliance-audit/sonar-s7637-exemption.bats +++ b/test/scripts/compliance-audit/sonar-s7637-exemption.bats @@ -30,7 +30,7 @@ classify() { } @test "no issue-ignore config at all is missing" { - classify "$(printf 'sonar.projectKey=petry-projects_foo\nsonar.organization=petry-projects\n')" + classify "$(printf 'sonar.projectKey=combsmith_foo\nsonar.organization=combsmith\n')" [ "$status" -eq 0 ] [ "$output" = "missing" ] } diff --git a/test/scripts/sonarcloud-audit/pure-helpers.bats b/test/scripts/sonarcloud-audit/pure-helpers.bats index 9790cbd73..73b24d525 100644 --- a/test/scripts/sonarcloud-audit/pure-helpers.bats +++ b/test/scripts/sonarcloud-audit/pure-helpers.bats @@ -59,13 +59,13 @@ call() { # ── sonar_project_to_repo ────────────────────────────────────────────────── @test "strips org prefix" { - call sonar_project_to_repo "petry-projects_markets"; [ "$output" = "markets" ] + call sonar_project_to_repo "combsmith_markets"; [ "$output" = "markets" ] } @test "broodminder-export2 key maps to the real repo broodminder-export" { - call sonar_project_to_repo "petry-projects_broodminder-export2"; [ "$output" = "broodminder-export" ] + call sonar_project_to_repo "combsmith_broodminder-export2"; [ "$output" = "broodminder-export" ] } @test "dotted repo name survives prefix strip" { - call sonar_project_to_repo "petry-projects_.github"; [ "$output" = ".github" ] + call sonar_project_to_repo "combsmith_.github"; [ "$output" = ".github" ] } # ── severity_rank ordering ─────────────────────────────────────────────────