diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml
index 054ed06..d1d29ea 100644
--- a/.gitea/workflows/ci.yml
+++ b/.gitea/workflows/ci.yml
@@ -37,9 +37,10 @@ jobs:
         env:
           SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
           SONAR_HOST_URL: "https://quality.nhcarrigan.com"
-          REF: ${{ gitea.ref }}
         with:
           args: >
             -Dsonar.sources=.
             -Dsonar.projectKey=typescript-config
-            -Dsonar.branch.name=$REF
+            -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
+            -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
+            -Dsonar.pullrequest.base=main