From 92997859cda853aec55b0d12bbf237f5d066d58d 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: Tue, 3 Oct 2023 13:47:44 -0400 Subject: [PATCH] [VAULT-20630] CI: Use 'ref' (not 'base_ref') as a default git reference to check out code in the test-go GHA workflow (#23458) (#23469) Co-authored-by: Kuba Wieczorek --- .github/workflows/ci.yml | 2 +- .github/workflows/test-go.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 243fc378d..187476dc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: with: github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }} no-restore: true # don't download them on a cache hit - # control checking out head instead of ref by a GH label + # control checking out head instead of default ref by a GH label # if checkout-head label is added to a PR, checkout HEAD otherwise checkout ref - if: ${{ !contains(github.event.pull_request.labels.*.name, 'checkout-head') }} run: echo "CHECKOUT_REF=${{ github.ref }}" >> "$GITHUB_ENV" diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index 46927ddfc..b84c59871 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -55,7 +55,7 @@ on: checkout-ref: description: The ref to use for checkout. required: false - default: ${{ github.base_ref }} + default: ${{ github.ref }} type: string env: ${{ fromJSON(inputs.env-vars) }}