diff --git a/.github/workflows/get_values.yaml b/.github/workflows/get_values.yaml index 500bc21..36a6552 100644 --- a/.github/workflows/get_values.yaml +++ b/.github/workflows/get_values.yaml @@ -44,7 +44,8 @@ jobs: if [ "${{ inputs.commitSha }}" != "" ]; then COMMIT_SHA=${{ inputs.commitSha }} BRANCH_NAME=${GITHUB_REF_NAME} - elif [ "${{ github.event_name }}" = "pull_request" ]; then + # pull_request_target exposes the same head ref/sha as pull_request; without this it falls through to the base branch. + elif [ "${{ github.event_name }}" = "pull_request" ] || [ "${{ github.event_name }}" = "pull_request_target" ]; then COMMIT_SHA=${{ github.event.pull_request.head.sha }} BRANCH_NAME=${GITHUB_HEAD_REF} else