Editors
flowpact's findings, hover traces and go to definition while you edit — in VS Code and any editor that speaks LSP.
flowpact ships a language server, so the analysis runs while you edit instead of only in CI. In VS Code, install
flowpact from the
Visual Studio Marketplace; in VSCodium,
Cursor, Windsurf and other editors built on VS Code, from
Open VSX. The extension bundles the server. Other editors
start it with flowpact lsp. Where neither registry is reachable, install the .vsix from a GitHub
release: see Install without a marketplace. You get:
- Diagnostics as you type — the findings of
flowpact lintfor the whole repository, closed files included, updated on every edit (unsaved ones too). Editing a reusable workflow updates its callers' findings at once. When.github/flowpact/contracts/exists,flowpact check's contract findings (FP801–FP805) are included. - Hover — how an input, secret, output, env variable or matrix key is declared, where its value comes from and where it flows, through every level of nesting.
- Go to definition across workflow calls and local actions: from
with: config:to the callee's input, fromneeds.build.outputs.urlto the reusable workflow's output, fromsteps.x.outputs.yto the action's output, fromsteps.x.outcometo the step, and fromenv.Xto the step's ownenv:. Into other repositories' workflows and actions too, once their sources are cached. - Find references and highlights across files, and rename an input, secret or output in every file that names it.
- Completion of the inputs and secrets a call or step does not pass yet, for calls into other repositories too, from the lockfile.

The server treats every directory with a .github folder as a repository, and, for a file with no .github folder
above it, the root of its git repository: a repository of an action at its root works too. Monorepos and nested
repositories need no configuration: the workspace folders are analyzed when the editor starts, and a repository nested
inside one once you open one of its files. Your config (severities, overrides, ignores) applies as in the
CLI.
VS Code
Install flowpact from the Visual Studio Marketplace, or from Open VSX in VSCodium, Cursor, Windsurf and other editors built on VS Code:
code --install-extension flowpact.vscode-flowpactIt bundles the language server, so nothing else needs to be installed, and works in VS Code 1.101 and later. The
server starts when the workspace has workflows or an action.yml, at a folder's root or nested deeper, or when you open
one; other workspaces only load the extension.
It complements GitHub's GitHub Actions
extension, which completes and validates workflow syntax file by file: flowpact adds what crosses files (the data flow
through reusable workflows and local actions, go to definition and references across them), and by default hides the
four rules both would report (flowpact.overlappingRules).


Install without a marketplace
Each GitHub release attaches the extension as
flowpact-vscode-X.Y.Z.vsix, the same file published to the Marketplace and Open VSX, with its signed provenance. Where
your network or policy blocks both registries:
-
Download the
.vsixfrom the release's Assets, or with the GitHub CLI:gh release download vX.Y.Z --repo ciatlas/flowpact --pattern 'flowpact-vscode-*.vsix*' -
Verify that the release workflow built it (optional, recommended; see Verify a release). Online, or offline against the bundle attached next to it:
gh attestation verify flowpact-vscode-X.Y.Z.vsix --repo ciatlas/flowpact gh attestation verify flowpact-vscode-X.Y.Z.vsix --repo ciatlas/flowpact \ --bundle flowpact-vscode-X.Y.Z.vsix.sigstore.json -
Install it. In the editor, open the Extensions view, then ⋯ → Install from VSIX…, and pick the file. Or from a terminal, with the editor's command line (
code,cursor,codium,windsurf):code --install-extension flowpact-vscode-X.Y.Z.vsix
The extension needs VS Code 1.101 or later (or an editor built on it). It bundles the language server, so it needs no
network access once installed. An extension installed from a .vsix does not update itself while the registries are
unreachable: install the next release's .vsix the same way, over the old one. To install it for a whole team, check
the .vsix into a shared location and run the same command, or use your organization's extension policy.
Hover
Hovering an input, secret, output, env variable, matrix key, job or uses: value shows a short card from flowpact:
- Header: flowpact, the kind of symbol, and a link to this section.
- First line: the symbol and where it belongs, with its declaration: type, required or optional, default, values.
- From / To: where the value comes from (callers' values, upstream outputs, contexts such as
github.event.pull_request.title) and where it goes (a callee's inputs, scripts, conditions), one hop each, with any further entries counted. A note in parentheses qualifies an entry as inflowpact trace, such as(when dispatched)for a workflow input read throughgithub(github.event.inputs.<name>,toJSON(github)).flowpact traceshows the whole chain. - On a step output, a line says when it may be
'': the step has anif:that can skip it. - On a caller's
with:orsecrets:key, the card shows what this call passes and where the value goes in the callee. - Inside a
${{ }}or a bareif:, away from a symbol: how GitHub reads the expression there, a condition ('',0,falseandnullare false), a value passed on as text (truebecomes'true') or a field that takes a boolean or a number, and what it yields:trueorfalse,'true'or'false', the text of an input, or''when an optional input is omitted or a step is skipped. Outside a condition, it notes that||and&&give one of their operands as it is. See Condition and value. - On a remote
uses:value, the card shows what the remote interfaces lockfile records: the commit, the inputs, secrets and outputs, and the secrets a reusable workflow reads without declaring them (onlysecrets: inheritpasses those), or why the reference has no entry. On a remote call'swith:orsecrets:key it shows the input or secret as recorded there, and Find All References lists every call that passes it. A read of a remote call's or action's output says whether the reference declares it. See Remote workflows and actions.
Other extensions add their own sections below it; GitHub's GitHub Actions extension, for example, describes the key's syntax.
In a contract file, hover and go to definition work on what the contract records: its path, the
inputs, secrets and outputs of its interface, the jobs and workflows of its calls, and its consumers with the
inputs they pass and the outputs they read. Each leads to the workflow or action that declares it.

Remote workflows and actions
A uses: of another repository (octo/ship/.github/workflows/deploy.yml@v1, octo/setup@v2) has a file to open
once its source is in your sources cache: flowpact remotes update
caches what it reads, and flowpact remotes download fills the cache for a lockfile someone else wrote. The file is the
one at the commit the uses: runs: its own commit when it pins one in full (@<sha>), else the commit the
lockfile records for its tag or branch. Then:
- Go to definition on the
uses:value opens the file (atworkflow_call:for a reusable workflow); on awith:orsecrets:key, the input or secret there; onneeds.<job>.outputs.<name>orsteps.<id>.outputs.<name>, the output. - Hover adds the workflow's or action's
name:and the descriptions of its inputs and secrets. When the lockfile records another commit for auses:pinned in full, the hover says so: runflowpact remotes update.
Files in the cache are another repository's at a fixed commit: the server does not analyze them, and VS Code opens them
read-only (other editors open them as files you should not edit). Without the source cached, the hover says to run
flowpact remotes download (with --github-com for one read on github.com from an enterprise server), and links to
the file on its host when that host is certain: github.com for an entry read there, or the API that
flowpact remotes update reads, as GITHUB_API_URL (if the editor has it) or a github.com or GHE.com origin tells.
For any other origin (an enterprise server without GITHUB_API_URL, an SSH alias, another forge) it gives no link
rather than a wrong one.
The editor finds a cached source on whichever host it was read from, so it needs no GITHUB_API_URL to open one, only
to link it. If you keep the cache elsewhere (--cache-dir), set flowpact.cacheDir (cacheDir in other editors) to
the same directory: VS Code's flowpact output names the one it reads.
Quick fixes
A finding that flowpact knows how to fix offers it as a quick fix (Ctrl+. or Cmd+., or the light bulb):
| Quick fix | On |
|---|---|
| Rename to the name a "did you mean" points at | an input, secret, output or step id (FP102, FP108, FP202, FP301, FP304) |
Add the missing required input or secret, under with: or secrets: | a call that leaves one out (FP101, FP201) |
Add the missing key to the include entries that lack it | a matrix value that is empty in some combinations (FP401, FP402) |
| Remove the unused input, and what local callers pass for it | FP104, in a workflow or action no other repository uses |
Regenerate the contracts, every file as flowpact generate writes it | a contract finding (FP801–FP805) |
Remove a comparison with '' from a condition: x != '' becomes x, x == '' becomes !x | FP507, when it is turned on |
Compare a text value with '' where it is set, so that it is 'true' or 'false': x becomes x != '' | a value read as a boolean that can be other text (FP506) |
An added key gets an empty value for you to fill in. A quick fix is offered only when the change is certain: none in a
flow mapping ({ … }) or a file with CRLF line endings, and no removal from a
published workflow or action, whose callers in other repositories would break.
Regenerating the contracts needs an editor that can create and delete files in an edit when a contract is new or
gone (VS Code can), and none is offered when a contract path is a symlink.
Every finding also offers Accept this finding with an override. It adds an override
for it to the config, creating .github/flowpact/flowpact.config.yml when there is none. VS Code asks for the reason
and, optionally, a date until which the finding is accepted. Other editors write a placeholder reason to replace
(Explain why this finding is accepted).
A finding in a workflow or action offers Ignore FP… on this line with a comment too. It adds an
ignore comment on a line of its own above the finding's
(# flowpact: ignore[FP501]), or adds the rule to a comment that accepts that line already. For a finding in a
run: | script, the comment goes above the run: line. Write the reason after the ].
The same fixes are in the JSON report as suggestions, and in SARIF as fixes.
Rename
Rename Symbol (F2) on an input, secret or output renames it everywhere in the repository: where it is
declared, where callers pass it, and where it is read (inputs.<name>, needs.<job>.outputs.<name>,
steps.<id>.outputs.<name>). Start from any of them. A job's outputs rename the same way.
flowpact refuses a rename it cannot make whole, and says why:
- the name is declared in another repository, or a step's script writes the output;
- a read it cannot rewrite, such as
inputs['name']; - the new name is taken or invalid;
- a caller passes the secret with
secrets: inherit.
A published workflow or action has callers in other repositories that the rename breaks: VS Code asks you to confirm, and other editors show a warning. Afterwards, regenerate the contracts (a quick fix offers it) and update any override that targets the old name.
Completion
Under a call's or step's with: or secrets:, completion offers the inputs or secrets it does not pass yet, required
ones first, with their type, default and description. A local reusable workflow or action declares them; for a call
into another repository, they come from the remote interfaces lockfile, without a network.
The descriptions of a remote reference's inputs need its cached source.
Settings
In VS Code and the editors built on it, under Settings → Extensions → flowpact:
| Setting | Default | Description |
|---|---|---|
flowpact.plugins | true | Load the plugins the config lists. They run JavaScript from the repository, so they never load in an untrusted workspace (Restricted Mode), whatever this setting says. |
flowpact.contracts | auto | Report contract drift and breaking interface changes: auto when .github/flowpact/contracts/ exists, on or off. |
flowpact.overlappingRules | auto | FP502–FP505 (expression syntax, schema, YAML syntax, context availability) repeat checks the GitHub Actions extension makes. auto hides them in files you open in the editor while that extension runs (it checks those files, and keeps its findings after you close them); show or hide them everywhere. |
flowpact.hiddenRules | [] | Rule codes not to show in the editor. To turn a rule off in the CLI and CI too, set it to off in the config. |
flowpact.cacheDir | "" | flowpact's cache directory, as flowpact remotes update --cache-dir takes it: Go to Definition opens the sources of remote workflows and actions from its remotes directory. An absolute path, or one under ~; empty for FLOWPACT_CACHE_DIR, else the per-user cache. |
flowpact.trace.server | messages | When the output's log level is Trace: messages names each message between VS Code and the server, verbose adds its content. |
Logs: the flowpact output channel (flowpact: Show Output). Its log level (Developer: Set Log Level…) is
also the server's: set it to Debug to see every stage of the analysis, or to Trace for the protocol messages too.
VS Code's own extension host log can say Not activating extension 'flowpact.vscode-flowpact': Timed out while searching… in a large workspace even though flowpact runs: it then starts after VS Code's startup instead. The output
channel and the language status item show its real state.
Commands: flowpact: Restart Language Server — also needed after you edit a plugin, since a loaded plugin stays loaded — and flowpact: Show Output.
Workspace trust
In an untrusted workspace (Restricted Mode), everything works except plugins, which run code from the repository. Trusting the workspace loads them without a restart; the language status item next to the file type says when they are off. Plugins load only for repositories inside the workspace folders: not for a file opened from elsewhere, nor for a repository above the folder you opened.
Limitations
- Completion covers the keys of
with:andsecrets:only, not workflow syntax or expressions: GitHub's Actions extension completes those.
Other editors
flowpact lsp starts the same server over stdin/stdout, for any editor with an LSP client. It needs flowpact
installed. Settings are read from the client's initializationOptions, and from
workspace/didChangeConfiguration under flowpact:
| Setting | Default | Description |
|---|---|---|
plugins | false | Load the plugins the config lists. Enable this only for repositories you trust. |
contracts | auto | auto, on or off, as above. |
hiddenRules | [] | Rule codes not to show. |
cacheDir | unset | flowpact's cache directory (an absolute path) for the sources of remote references; unset for FLOWPACT_CACHE_DIR, else the per-user cache. |
logLevel | info | silent, error, warn, info, debug or trace, sent to the editor's log. |
Neovim
With Neovim 0.11 or later:
vim.lsp.config('flowpact', {
cmd = { 'flowpact', 'lsp' },
filetypes = { 'yaml' },
root_markers = { '.github' },
})
vim.lsp.enable('flowpact')To use the plugins the config lists, add init_options = { plugins = true }.