diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 63461fc88..040ba012b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,11 +8,8 @@ name: "CodeQL" on: push: branches: [master] - pull_request: - # The branches below must be a subset of the branches above - branches: [master] schedule: - - cron: '30 10 * * *' + - cron: '40 10 * * *' jobs: analyze: @@ -32,9 +29,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 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 # If this run was triggered by a pull request event, then checkout # the head of the pull request instead of the merge commit.