Skip to content

Commit d9dfea9

Browse files
authored
chore: add manual SHA setting to CodeQL action (#2442)
1 parent 222acdb commit d9dfea9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
branches:
1818
- main
1919
workflow_dispatch:
20+
inputs:
21+
sha:
22+
description: 'Commit SHA to analyze'
23+
required: false
24+
type: string
2025

2126
jobs:
2227
analyze:
@@ -37,6 +42,8 @@ jobs:
3742
steps:
3843
- name: Checkout repository
3944
uses: actions/checkout@v3
45+
with:
46+
ref: ${{ github.event.inputs.sha || github.sha }}
4047

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

0 commit comments

Comments
 (0)