From 13e2900b106ce2e7b72bf5e1634707a148778bd6 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Mon, 30 Sep 2024 15:34:34 -0700 Subject: [PATCH] fix(codeql): attempt to fix codeql from PRs CodeQL appears to require fetch-depth: 0 for some reason on pull requests. Signed-off-by: Chris Patterson --- .github/workflows/codeql.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ca8bdde..a4e179d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,14 +9,15 @@ # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # -name: "CodeQL" +name: "CodeQL Advanced" on: push: branches: [ "main" ] pull_request: + branches: [ "main" ] schedule: - - cron: '44 19 * * 3' + - cron: '34 11 * * 2' jobs: analyze: @@ -27,7 +28,6 @@ jobs: # - https://gh.io/using-larger-runners (GitHub.com only) # Consider using larger runners or machines with greater resources for possible analysis time improvements. runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: # required for all workflows security-events: write @@ -56,6 +56,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL