From 766435ef6617563cb68c35e36695a78f1267a7da Mon Sep 17 00:00:00 2001 From: Ken Tucker Date: Sun, 22 Dec 2024 07:05:03 -0500 Subject: [PATCH] Update CI workflows for repository checkout and versioning Updated `codeql.yml` to use `actions/checkout@v4` with `fetch-depth: 0` to fetch the entire repository history. Added steps in `dotnet.yml` to install `nbgv` tool and set version using `nbgv cloud`. --- .github/workflows/codeql.yml | 4 +++- .github/workflows/dotnet.yml | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bb8dd27..701286d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -56,7 +56,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - + with: + fetch-depth: 0 + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5a153f6..10ca593 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -31,6 +31,11 @@ jobs: - name: Install Microsoft SBom tool run: dotnet tool install --global Microsoft.Sbom.DotNetTool + + - name: Install Nerdbank Git versioning + run: dotnet tool install -g nbgv + - name: Set Version + run: nbgv cloud - name: Build run: dotnet build --no-restore --configuration Release