Skip to content

Commit

Permalink
Refs #21286: Add PR check to use GitHub ref
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso committed Jul 22, 2024
1 parent 879ff11 commit cf57ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.fastcdr-branch || github.ref || matrix.supported-branches }}
ref: ${{ github.event.inputs.fastcdr-branch || (github.event_name == 'pull_request' && github.ref) || matrix.supported-branches }}

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

0 comments on commit cf57ac6

Please sign in to comment.