diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 0b0ab9f922..5b61b6b3f4 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -329,7 +329,7 @@ jobs:
             ${{ runner.os }}-gradle-
       - run: ./gradlew sonarqube $CI_GRADLE_ARG_PROPERTIES
         env:
-          - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
 
 # Notify the channel about scheduled runs, do not notify for manually triggered runs
   notify: