From 45099f40f1575c8730e9795a54ea35ca69b395a1 Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Fri, 29 Apr 2022 14:38:10 +0530 Subject: [PATCH] fix: ce spec action for PRs from forks (#4587) CE spec action was failing for PRs from external forks at the checkout stage. This PR modifies the checkout action to use the full repo name and branch. #4586 --- .github/workflows/run_foss_spec.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_foss_spec.yml b/.github/workflows/run_foss_spec.yml index 3a6ff5f7b..395e063e7 100644 --- a/.github/workflows/run_foss_spec.yml +++ b/.github/workflows/run_foss_spec.yml @@ -42,7 +42,8 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: ${{ github.head_ref }} + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - uses: ruby/setup-ruby@v1 with: