Skip to content

Commit ddcff97

Browse files
committed
Fix CodeQL workflow: full checkout depth for Nerdbank.GitVersioning
The Build step ran a shallow clone, so dotnet build failed before analyze ever ran - NBGV needs full git history to compute a version, same reason ci.yml's checkout already sets fetch-depth: 0.
1 parent 8bfac29 commit ddcff97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # full history - Nerdbank.GitVersioning needs it to compute the version
2022

2123
- uses: actions/setup-dotnet@v4
2224
with:

0 commit comments

Comments
 (0)