Skip to content

Commit cf57ac6

Browse files
committed
Refs #21286: Add PR check to use GitHub ref
Signed-off-by: JesusPoderoso <[email protected]>
1 parent 879ff11 commit cf57ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Checkout repository
4444
uses: actions/checkout@v4
4545
with:
46-
ref: ${{ github.event.inputs.fastcdr-branch || github.ref || matrix.supported-branches }}
46+
ref: ${{ github.event.inputs.fastcdr-branch || (github.event_name == 'pull_request' && github.ref) || matrix.supported-branches }}
4747

4848
# Initializes the CodeQL tools for scanning.
4949
- name: Initialize CodeQL

0 commit comments

Comments
 (0)