From f9a672eb73bc91577a88c4569eac235fd44bb1f7 Mon Sep 17 00:00:00 2001 From: David Bond Date: Sat, 3 Oct 2026 23:55:30 +0100 Subject: [PATCH] OPS-157454: Give CodeQL a full clone so Nerdbank.GitVersioning can version the build CodeQL's autobuild failed on every run because the default shallow checkout lacks the history Nerdbank.GitVersioning needs to compute the version height. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/codeql.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d8e92d2..6f02a69 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,6 +25,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v7 + with: + # Nerdbank.GitVersioning needs full history to compute the version height. + fetch-depth: 0 - name: Initialize CodeQL uses: github/codeql-action/init@v4