diff --git a/.github/workflows/end-to-end-tests.yaml b/.github/workflows/end-to-end-tests.yaml
index db8c692e5e..c054d1cb46 100644
--- a/.github/workflows/end-to-end-tests.yaml
+++ b/.github/workflows/end-to-end-tests.yaml
@@ -133,6 +133,9 @@ jobs:
             deployments: write
         steps:
             - uses: actions/checkout@v4
+              with:
+                  persist-credentials: false
+                  repository: ${{ inputs.react-sdk-repository || github.repository }}
 
             - uses: actions/setup-node@v4
               with: