From d20b9a6c0933d27a7f0565d32c4d7505607d2c57 Mon Sep 17 00:00:00 2001 From: Egor Kostan Date: Sun, 17 Nov 2024 21:15:22 -0800 Subject: [PATCH] Update codeql.yml --- .github/workflows/codeql.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1dd72f11c2b..2bb013e8f9d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,3 +1,4 @@ +--- # For most projects, this workflow file will not need changing; you simply need # to commit it to your repository. # @@ -11,16 +12,19 @@ # name: "CodeQL Advanced" -on: +on: # yamllint disable-line rule:truthy + pull_request_target: + types: + - opened + - edited + - synchronize + - reopened push: branches: [ "master" ] - pull_request: - branches: [ "master" ] schedule: - cron: '28 1 * * 3' workflow_call: - jobs: analyze: name: Analyze (${{ matrix.language }}) @@ -28,7 +32,8 @@ jobs: # - https://gh.io/recommended-hardware-resources-for-running-codeql # - https://gh.io/supported-runners-and-hardware-resources # - https://gh.io/using-larger-runners (GitHub.com only) - # Consider using larger runners or machines with greater resources for possible analysis time improvements. + # Consider using larger runners or machines with greater resources + # for possible analysis time improvements. runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} permissions: # required for all workflows