From 2758f83a2a6472a016b34cba3e7b6162bf14855a Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 5 May 2022 10:07:36 +1000 Subject: [PATCH] Run Mayhem4API only within organisation The API key is not accessible outside. --- .github/workflows/mapi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mapi.yml b/.github/workflows/mapi.yml index c76c4427d9..82364dd57b 100644 --- a/.github/workflows/mapi.yml +++ b/.github/workflows/mapi.yml @@ -1,7 +1,8 @@ name: 'Mayhem for API' -on: [push, pull_request] +on: [push] jobs: test: + if: ${{ github.repository_owner == "openfoodfoundation" }} runs-on: ubuntu-latest strategy: fail-fast: true