From c7ccbce3f00e3d5ff425c7f2da98c6c4b3f0b9f4 Mon Sep 17 00:00:00 2001 From: Alessia Bellisario Date: Mon, 23 Jan 2023 12:16:52 -0500 Subject: [PATCH] chore: prevent actions from running on forks (#10467) --- .github/workflows/close-stale-issues.yml | 2 ++ .github/workflows/release.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index b904d07104a..4fdb50da7dc 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -11,6 +11,8 @@ on: jobs: stale: + # Prevents action from running on forks + if: github.repository == 'apollographql/apollo-client' runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 391abc3ba39..0c190cbab8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: release: name: Changesets Release + # Prevents action from creating a PR on forks + if: github.repository == 'apollographql/apollo-client' runs-on: ubuntu-latest steps: - name: Checkout repo