From 4ed783878d0fa97dd6a70957b5a3200c9bdf7439 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 5 Jun 2021 14:07:41 +0300 Subject: [PATCH] No semgrep.yml on forks --- .github/workflows/semgrep.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index bef2d7bd9c..9fa184187b 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -7,7 +7,7 @@ on: jobs: check: - if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/api'" + if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.issue.pull_request || github.event.pull_request.head.repo.full_name == github.repository)" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2