Repository navigation
ci(connectors-ddl): temporarily disable the lane (manual dispatch only) #2164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: constructorfabric/insight
Length of output: 8506
🏁 Script executed:
Repository: constructorfabric/insight
Length of output: 273
🌐 Web query:
GitHub Actions workflow_dispatch selected ref github ref documentation💡 Result:
When you manually trigger a workflow using the workflow_dispatch event, you can specify a branch, tag, or commit SHA using the ref parameter [1][2][3]. This selection is distinct from the default git reference that triggered the workflow run [4][5]. Key distinctions and behaviors include: 1. Request-time Ref: When using the REST API or GitHub CLI to trigger a workflow, you provide a ref as an explicit parameter [1][2][6]. This determines the git reference (e.g., branch or tag) against which the workflow runs [1][2]. 2. Context Variable: The github.ref context variable represents the ref that triggered the workflow run [4][5]. For a manually triggered workflow_dispatch event, github.ref will generally reflect the branch or tag specified during the trigger process [4]. 3. Manual Implementation: If your workflow requires users to select a ref manually, you can define an input in your workflow YAML file [7][8]. Since workflow_dispatch does not automatically provide a dedicated "ref input" field in the UI beyond the execution-time parameter, some developers define a custom input (e.g., named ref) to capture this information as part of the event payload [7][9]. 4. Accessing the Value: You can access the specified ref through the inputs context (e.g., ${{ inputs.ref }}) if you have defined it as an input, or you can rely on the default github.ref context if no custom input is required [7][8][5]. Many developers use a combination like ${{ inputs.ref || github.ref }} to fallback to the default ref if the manual input is not provided [9]. For workflows triggered via the web UI, the user is prompted to select a branch/tag in the "Run workflow" dialog; this selection is passed as the ref for the run [2][6].
Citations:
🌐 Web query:
GitHub Actions workflow_dispatch input selected ref repository branch tag selected input syntax💡 Result:
In GitHub Actions, the workflow_dispatch event allows you to manually trigger a workflow from the GitHub UI, GitHub CLI, or REST API [1]. When using the GitHub UI, you are automatically provided with a branch selector dropdown, which allows you to choose the Git reference (branch or tag) on which the workflow will execute [1]. You do not need to configure specific input syntax to enable this branch selection; it is a built-in feature of the workflow_dispatch trigger [1]. While the branch selection is automatic in the UI, you can define custom input parameters within your workflow file to further configure the execution [2][3]. The following syntax shows how to define such inputs: name: Manual Workflow on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' type: choice options: - info - warning - debug If you are triggering the workflow via the GitHub CLI (gh) or REST API, you must explicitly specify the reference using the --ref flag (CLI) or the ref request body parameter (API) [1]. Key points regarding workflow_dispatch inputs: - UI Branch Selection: The branch selection dropdown is a standard part of the interface for any workflow that includes the workflow_dispatch trigger [1]. - Input Definitions: You can define up to 25 optional or required inputs using types such as string, boolean, choice, number, and environment [1][4][5]. - Accessing Inputs: These inputs are accessible within your workflow jobs using the ${{ github.event.inputs.<input_name> }} context [4][5][2]. If you need to force a workflow to run only on specific branches, you must configure this in the workflow file using branch filters (e.g., on: push: branches: [main]), though this affects other triggers like push and pull_request as well [6][7]. For workflow_dispatch specifically, the UI allows the user to select any branch currently available in the repository [1].
Citations:
Fix the manual-dispatch job gate.
workflow_dispatchdoes not populategithub.event.pull_request; the condition at lines 59-60 is false for every manual run, so theconnectors-ddljob is skipped. Add explicitworkflow_dispatchlogic to the gate, and restrict the selected ref to a trusted branch before checkout runs credential-loaded bootstrap scripts.regen-pralso remains pull-request-only at line 218. Document this limitation or add the required PR inputs for manual drift remediation.🤖 Prompt for AI Agents