From 32ef185e9d8d7402e27219636573ae3465ac61c1 Mon Sep 17 00:00:00 2001 From: Timon de Groot Date: Thu, 4 Jul 2024 13:54:41 +0200 Subject: [PATCH] ci: Checkout pull request ref instead Commit 17806306 set the pull request event to `pull_request_target`, which means the pipelines run on the base ref with the secrets from base as well. That's all fine, but we actually want to test the code on the pull request ref --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 30285f0..ed2843d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout hypernode-deploy uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} - name: Run general testsuite if: ${{ matrix.testsuite == 'general' }} run: MAGENTO_REPO=./magento2 ./runtests.sh general