(fix) codeql-analysis.yml removed deprecated steps

Removed deprecated `checkout HEAD^2` step from CodeQL workflow. 
https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/unnecessary-step-found
This commit is contained in:
Megladon
2025-04-30 10:45:24 +02:00
committed by GitHub
parent 9cd5f4210d
commit c99e46e5d2
+1 -10
View File
@@ -30,16 +30,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
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
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL