Skip to content

Commit b70debc

Browse files
committed
chore: same for code scanning
1 parent 3a33956 commit b70debc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ on:
1919
branches: [main]
2020
schedule:
2121
- cron: "42 9 * * 5"
22+
workflow_dispatch:
23+
inputs:
24+
pr_number:
25+
description: "PR number to test (for fork PRs)"
26+
required: true
27+
type: string
2228

2329
jobs:
2430
analyze:
@@ -39,6 +45,8 @@ jobs:
3945
steps:
4046
- name: Checkout repository
4147
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
48+
with:
49+
ref: ${{ inputs.pr_number && format('refs/pull/{0}/head', inputs.pr_number) || '' }}
4250

4351
# Initializes the CodeQL tools for scanning.
4452
- name: Initialize CodeQL

0 commit comments

Comments
 (0)