From cfa1e9d363d14df5e10e8e9a8869db22c56dbff1 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:56:05 -0400 Subject: [PATCH] backport of commit 87d37fecb775a5ae82d264f0fc08b613dd733c7c (#21688) Co-authored-by: Violet Hynes --- .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 9b687437b..8568ee6c0 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"