From 3c7afbd495d7b3578c0e9c5450b6b4869b20b271 Mon Sep 17 00:00:00 2001 From: Tatsuro Shibamura Date: Sat, 7 Mar 2026 16:20:29 +0900 Subject: [PATCH] Enhance CodeQL workflow triggers and conditions for pull requests --- .github/workflows/codeql.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f96743a..d397370 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -3,8 +3,15 @@ name: "CodeQL Advanced" on: push: branches: [ "master" ] + paths: + - "src/**" + - ".github/workflows/**" pull_request: + types: [ opened, reopened, synchronize, ready_for_review ] branches: [ "master" ] + paths: + - "src/**" + - ".github/workflows/**" schedule: - cron: '15 22 * * 2' @@ -14,6 +21,7 @@ env: jobs: analyze: name: Analyze (${{ matrix.language }}) + if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} runs-on: ${{ matrix.os }} permissions: security-events: write