From 4bca5143ee3b62de96640f8c08611ffc7c4a5242 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Fri, 5 May 2023 13:06:45 +0100 Subject: [PATCH] Update cypress.yaml (#10790) --- .github/workflows/cypress.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index b43f8ac195..aef13a22c9 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -128,8 +128,9 @@ jobs: with: # XXX: We're checking out untrusted code in a secure context # We need to be careful to not trust anything this code outputs/may do - # We need to check this out to access the cypress tests which are on the head branch - repository: ${{ github.event.workflow_run.head_repository.full_name }} + # + # Note that we check out from the default repository, which is (for this workflow) the + # *target* repository for the pull request. ref: ${{ steps.sha.outputs.sha }} persist-credentials: false path: matrix-react-sdk