Repository navigation
Give CodeQL a full clone so Nerdbank.GitVersioning can version the build - #51
Conversation
…rsion 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) <noreply@anthropic.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Pull Request Overview
The required configuration fetch-depth: 0 for the actions/checkout step is missing from the .github/workflows/codeql.yml file. This implementation gap prevents the PR from achieving its objective of enabling accurate version calculation via Nerdbank.GitVersioning. Although the project remains up to Codacy quality standards, this functional omission should be addressed before merging.
Test suggestions
- Verify that the actions/checkout step in codeql.yml includes fetch-depth: 0
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that the actions/checkout step in codeql.yml includes fetch-depth: 0
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
Cause
The CodeQL
Analyze (csharp)job fails onmainand on pull requests.actions/checkoutdefaults to a shallow clone (fetch-depth: 1), so Nerdbank.GitVersioning cannot compute the version height and autobuild stops with:Fix
Set
fetch-depth: 0on the checkout step of the CodeQL workflow so the job gets full history. This is the same one-line change proven on panoramicdata/HubSpot.Api#8.Tracked under OPS-157454.
🤖 Generated with Claude Code