@@ -2,9 +2,13 @@ name: "Code scanning - action"
7+ # The branches below must be a subset of the branches above
6− - cron: '0 0 * * 0'
10+ - cron: '0 15 * * 2'
9 CodeQL-Build:
13 CodeQL-Build:
@@ -17,6 +21,15 @@ jobs:
18 - name: Checkout repository
22 - name: Checkout repository
19 uses: actions/checkout@v2
23 uses: actions/checkout@v2
25+ # We must fetch at least the immediate parents so that if this is
26+ # a pull request then we can checkout the head.
29+ # If this run was triggered by a pull request event, then checkout
30+ # the head of the pull request instead of the merge commit.
31+ - run: git checkout HEAD^2
32+ if: ${{ github.event_name == 'pull_request' }}
21 # Initializes the CodeQL tools for scanning.
34 # Initializes the CodeQL tools for scanning.
22 - name: Initialize CodeQL
35 - name: Initialize CodeQL