Skip to content

Commit a232dde

Browse files
committed
fix: fetch full git history to resolve CodeQL diff range undefined values
- Add fetch-depth: 0 to checkout action to get complete git history - This should prevent the pr-diff-range extension from generating undefined values - The shallow clone was causing git diff calculations to fail
1 parent 64fd1d2 commit a232dde

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
steps:
3131
- name: Checkout repository
3232
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
with:
34+
# Fetch more history to avoid diff range issues
35+
fetch-depth: 0
3336

3437
- name: Initialize CodeQL
3538
uses: github/codeql-action/init@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f2 # v3.27.4

0 commit comments

Comments
 (0)