Skip to content

Commit

Permalink
Refs #21286: Add check to use different sources
Browse files Browse the repository at this point in the history
signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Jul 22, 2024
1 parent 879ff11 commit 567bbf5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,19 @@ jobs:
# Learn more:
# 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

env:
fastcdr-branch: ${{
github.event_name == 'workflow_dispatch' && github.event.inputs.fastcdr-branch ||
github.event_name == 'pull_request' && github.ref ||
github.event_name == 'schedule' && matrix.supported-branches ||
'2.2.x'
}}

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.fastcdr-branch || github.ref || matrix.supported-branches }}
ref: ${{ env.fastcdr-branch }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down

0 comments on commit 567bbf5

Please sign in to comment.