Skip to content

Commit 9422a69

Browse files
fix(ci): add ref input to CodeQ GCS workflow
Allows specifying which branch/tag/SHA to build from. This is needed to test the workflow before the branding code is merged to dev.
1 parent e9d7262 commit 9422a69

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/codeq-gcs-upload.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: "Version tag (e.g., v1.0.0). Leave empty to use current timestamp."
88
required: false
99
type: string
10+
ref:
11+
description: "Git ref to build from (branch, tag, or SHA). Defaults to the branch the workflow is run from."
12+
required: false
13+
type: string
1014

1115
jobs:
1216
build:
@@ -40,6 +44,8 @@ jobs:
4044
steps:
4145
- name: Checkout
4246
uses: actions/checkout@v4
47+
with:
48+
ref: ${{ inputs.ref || github.ref }}
4349

4450
- name: Setup Bun
4551
uses: oven-sh/setup-bun@v2

0 commit comments

Comments
 (0)