Skip to content

Commit 879ff11

Browse files
committed
Refs #21286: Apply Edu' suggestions
Signed-off-by: JesusPoderoso <[email protected]>
1 parent f140683 commit 879ff11

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@
1212
name: "CodeQL"
1313

1414
on:
15-
push:
16-
branches:
17-
- 2.2.x
15+
workflow_dispatch:
16+
inputs:
17+
fastcdr-branch:
18+
description: 'Branch or tag of Fast CDR repository'
19+
required: true
20+
type: string
21+
schedule:
22+
- cron: '0 1 * * *'
1823
pull_request:
19-
# The branches below must be a subset of the branches above
20-
branches:
21-
- 2.2.x
24+
types:
25+
- review_requested
2226

2327
jobs:
2428
analyze:
@@ -30,13 +34,16 @@ jobs:
3034
matrix:
3135
os: [windows-2019, ubuntu-22.04, macos-13, ]
3236
language: [ 'cpp' ]
37+
supported-branches: [master, 2.2.x, 1.1.x, 1.0.x]
3338
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
3439
# Learn more:
3540
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
3641

3742
steps:
3843
- name: Checkout repository
3944
uses: actions/checkout@v4
45+
with:
46+
ref: ${{ github.event.inputs.fastcdr-branch || github.ref || matrix.supported-branches }}
4047

4148
# Initializes the CodeQL tools for scanning.
4249
- name: Initialize CodeQL

0 commit comments

Comments
 (0)