From 75d9e699c237774fd91bf1a2fcb396382cf82170 Mon Sep 17 00:00:00 2001 From: Artem Derevnjuk Date: Thu, 30 Dec 2021 18:45:54 +0300 Subject: [PATCH] ci: prevent the jobs for running on an action for fork See details in actions/github-script#42 --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a62e4fe39a4..1ee82979758 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -124,6 +124,7 @@ jobs: - name: Run benchmarks run: yarn benchmarks - uses: actions/github-script@v4 + if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork }} with: github-token: ${{secrets.GITHUB_TOKEN}} script: |