From 87d37fecb775a5ae82d264f0fc08b613dd733c7c Mon Sep 17 00:00:00 2001 From: Violet Hynes Date: Fri, 7 Jul 2023 13:01:31 -0400 Subject: [PATCH] Run only on OSS (#21669) --- .github/workflows/add-hashicorp-contributed-label.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-hashicorp-contributed-label.yml b/.github/workflows/add-hashicorp-contributed-label.yml index 9b687437b6..8568ee6c03 100644 --- a/.github/workflows/add-hashicorp-contributed-label.yml +++ b/.github/workflows/add-hashicorp-contributed-label.yml @@ -17,8 +17,8 @@ on: jobs: add-hashicorp-contributed-label: - # Only run if this is NOT coming from a fork of Vault (if this is not true, it's community contributed) - if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }} + # Only run if this is NOT coming from a fork of hashicorp/vault (if this is not true, it's community contributed) + if: ${{ github.repository == 'hashicorp/vault' && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }} runs-on: ubuntu-latest steps: - name: "Add label to PR"