diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml
index dcd6010ad2..e4929763af 100644
--- a/.github/workflows/performance.yml
+++ b/.github/workflows/performance.yml
@@ -43,6 +43,8 @@ jobs:
         memcached: [ true, false ]
     with:
       memcached: ${{ matrix.memcached }}
+    secrets:
+      CODEVITALS_PROJECT_TOKEN: ${{ secrets.CODEVITALS_PROJECT_TOKEN }}
 
   slack-notifications:
     name: Slack Notifications
diff --git a/.github/workflows/reusable-performance.yml b/.github/workflows/reusable-performance.yml
index bf6b31fc17..c6791aaf19 100644
--- a/.github/workflows/reusable-performance.yml
+++ b/.github/workflows/reusable-performance.yml
@@ -26,6 +26,10 @@ on:
         required: false
         type: 'boolean'
         default: false
+    secrets:
+      CODEVITALS_PROJECT_TOKEN:
+        description: 'The authorization token for https://www.codevitals.run/project/wordpress.'
+        required: true
 
 env:
   PUPPETEER_SKIP_DOWNLOAD: ${{ true }}
diff --git a/tests/performance/log-results.js b/tests/performance/log-results.js
index bf62721c1b..581c0d3986 100644
--- a/tests/performance/log-results.js
+++ b/tests/performance/log-results.js
@@ -108,6 +108,7 @@ const req = https.request( options, ( res ) => {
 
 req.on( 'error', ( error ) => {
 	console.error( error );
+	process.exit( 1 );
 } );
 
 req.write( data );