From c0a1473091afa509d7d70a8331b9daaec7c5a3c2 Mon Sep 17 00:00:00 2001 From: Zach Trocinski Date: Wed, 16 Oct 2024 12:49:58 -0500 Subject: [PATCH] Update workflows for checks --- .github/workflows/code-review.yml | 3 ++- .github/workflows/hugo-build-pr-check.yml | 3 +-- .github/workflows/validate-queries.yml | 2 ++ .github/workflows/validate-recommendations.yml | 2 ++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index 30f6a8da..751fb67e 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -27,7 +27,8 @@ jobs: - name: Checkout code uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: - fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - name: Run github/super-linter uses: github/super-linter@b807e99ddd37e444d189cfd2c2ca1274d8ae8ef1 # v7 diff --git a/.github/workflows/hugo-build-pr-check.yml b/.github/workflows/hugo-build-pr-check.yml index 95f266e8..98644db0 100644 --- a/.github/workflows/hugo-build-pr-check.yml +++ b/.github/workflows/hugo-build-pr-check.yml @@ -47,8 +47,7 @@ jobs: - name: Checkout uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: - submodules: recursive - fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Setup Pages id: pages diff --git a/.github/workflows/validate-queries.yml b/.github/workflows/validate-queries.yml index 5d311ed5..fc575d06 100644 --- a/.github/workflows/validate-queries.yml +++ b/.github/workflows/validate-queries.yml @@ -49,6 +49,8 @@ jobs: - name: Checkout repository uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + with: + ref: ${{ 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 e5eec779..b29fccbf 100644 --- a/.github/workflows/validate-recommendations.yml +++ b/.github/workflows/validate-recommendations.yml @@ -23,6 +23,8 @@ jobs: - name: Checkout repository uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Set up Python 3.x uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0