Skip to content

Commit 82f007f

Browse files
authored
Enhance CodeQL workflow triggers and conditions for pull requests (#316)
1 parent db75e8e commit 82f007f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ name: "CodeQL Advanced"
33
on:
44
push:
55
branches: [ "master" ]
6+
paths:
7+
- "src/**"
8+
- ".github/workflows/**"
69
pull_request:
10+
types: [ opened, reopened, synchronize, ready_for_review ]
711
branches: [ "master" ]
12+
paths:
13+
- "src/**"
14+
- ".github/workflows/**"
815
schedule:
916
- cron: '15 22 * * 2'
1017

@@ -14,6 +21,7 @@ env:
1421
jobs:
1522
analyze:
1623
name: Analyze (${{ matrix.language }})
24+
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
1725
runs-on: ${{ matrix.os }}
1826
permissions:
1927
security-events: write

0 commit comments

Comments
 (0)