From 4bb2d3792514b865cb7b2ea235d06583207f873f Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Thu, 21 Sep 2023 16:34:10 -0700 Subject: [PATCH] ci(test): do not run end-to-end tests in PRs from forks (#48) --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 25d78f0..e9a368a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: name: End-to-End runs-on: ubuntu-latest # do not run from forks, as forks don’t have access to repository secrets - if: github.repository_owner == 'actions' + if: github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3