diff --git a/templates/testreport/diff.yml b/templates/testreport/diff.yml
index f02b1efd3baaa438e33acd0d6466f5ebe10ac6c3..b23b71cec6bd202d33a80f751270e268519e1290 100644
--- a/templates/testreport/diff.yml
+++ b/templates/testreport/diff.yml
@@ -14,6 +14,7 @@
     # as described at https://docs.gitlab.com/ee/api/job_artifacts.html#download-a-single-artifact-file-from-specific-tag-or-branch,
     # because that only exposes the latest _successful_ pipeline. We want the latest test report
     # of either the last succeeded pipeline or the last failed pipeline.
+    - python-gitlab-set-private-token ${TEST_REPORT_JOB_TOKEN}
     # So, first determine the previous pipeline.
     - LAST_PIPELINE_SUCCESS=$(gitlab --output json project-pipeline list --project-id $CI_PROJECT_ID --ref $TEST_REPORT_DIFF_REF --scope finished --status success | jq 'first.id')
     - LAST_PIPELINE_FAILED=$(gitlab --output json project-pipeline list --project-id $CI_PROJECT_ID --ref $TEST_REPORT_DIFF_REF --scope finished --status failed | jq 'first.id')