[github-actions] Also checkout all tags for codeql
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index efe9746..67830a6 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -34,7 +34,7 @@
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
- fetch-depth: 2
+ fetch-depth: 0
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL