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"