Don't use HEAD^2 in codeql anymore

> 1 issue was detected with this workflow: git checkout HEAD^2 is no
> longer necessary. Please remove this step as Code Scanning recommends
> analyzing the merge commit for best results.

https://github.com/ddnet/ddnet/actions/runs/931568951
This commit is contained in:
def 2021-06-12 20:12:26 +02:00
parent 6388002467
commit 7dd4b5e1a9

View file

@ -37,11 +37,6 @@ jobs:
fetch-depth: 2 fetch-depth: 2
submodules: true submodules: true
# 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' }}
- name: Prepare Linux - name: Prepare Linux
if: matrix.language == 'cpp' if: matrix.language == 'cpp'
run: | run: |