Skip to content

Commit

Permalink
fix(codeql): attempt to fix codeql from PRs
Browse files Browse the repository at this point in the history
CodeQL appears to require fetch-depth: 0 for some reason on
pull requests.

Signed-off-by: Chris Patterson <[email protected]>
  • Loading branch information
cjp256 committed Sep 30, 2024
1 parent 0f55fd7 commit 13e2900
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 13e2900

Please sign in to comment.