From cc841ed32de63b5be60770f199ed3304757aff98 Mon Sep 17 00:00:00 2001 From: Zach Trocinski Date: Fri, 18 Oct 2024 20:33:42 -0500 Subject: [PATCH] Adjust checks --- .github/workflows/validate-queries.yml | 6 +++++- .github/workflows/validate-recommendations.yml | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate-queries.yml b/.github/workflows/validate-queries.yml index ae1538ad..1280ac2b 100644 --- a/.github/workflows/validate-queries.yml +++ b/.github/workflows/validate-queries.yml @@ -50,8 +50,12 @@ jobs: - name: Checkout repository uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: - ref: ${{ github.head_ref }} + ref: "refs/pull/${{ github.event.number }}/merge" + fetch-depth: 2 + - name: Sanity Check + run: | + [[ "$(git rev-parse 'HEAD^2')" == "${{ github.event.pull_request.head.sha }}" ]] - name: Azure login (OIDC) uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0 diff --git a/.github/workflows/validate-recommendations.yml b/.github/workflows/validate-recommendations.yml index ffc0d53a..e5eec779 100644 --- a/.github/workflows/validate-recommendations.yml +++ b/.github/workflows/validate-recommendations.yml @@ -23,8 +23,6 @@ jobs: - name: Checkout repository uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - with: - ref: ${{ github.head_ref }} - name: Set up Python 3.x uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0