plugins/lisa-agy/skills/lisa-verify-workflow-change/SKILL.md
Use when a GitHub Actions workflow file changed and you need pre-merge runtime proof. Classifies default-branch-only triggers, dispatches a safe workflow_dispatch sibling on the branch ref when possible, observes the exact step under test, cancels before side effects, and proves cleanup.
npx skillsauth add codyswanngt/lisa lisa-verify-workflow-changeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when a pull request changes files under .github/workflows/ and the change needs empirical GitHub Actions proof before merge.
This verifies workflow behavior, not product behavior. For product behavior, use lisa-verify. For PR merge driving, use lisa-drive-pr-to-merge after this skill has produced workflow evidence or a clear unverifiable verdict.
<org>/<repo>..github/workflows/<name>.yml.GitHub evaluates workflow_run, schedule, issue_comment, and pull_request_review workflows from the default branch copy of the workflow file. A run fired by one of those triggers does not prove a pull request branch's copy of that workflow works.
Name this trap explicitly in the verification report. Do not cite a run fired by one of those triggers as evidence for branch changes.
Establish the baseline
Capture the repository default branch, current open PR count, branch list, issue count, and any relevant repo variable state before dispatch:
gh repo view <org>/<repo> --json defaultBranchRef
gh pr list --repo <org>/<repo> --state open --json number,headRefName
gh issue list --repo <org>/<repo> --state open --json number,title --limit 100
gh variable list --repo <org>/<repo>
If a gate variable may need to be changed, record whether it is set and its exact value. "Unset" is a distinct state and must be restored as unset, not as false.
Classify each changed workflow trigger
Read the changed workflow file from the branch and list its on: triggers. If it uses workflow_run, schedule, issue_comment, or pull_request_review, state that the workflow's own trigger cannot exercise the branch copy pre-merge.
A default-branch-only trigger is not a blocker by itself. It means direct trigger evidence is invalid and a dispatchable sibling is required.
Find a dispatchable sibling
Search for a workflow_dispatch workflow that reaches the same reusable workflow, job, step, or input under test:
rg -n "workflow_dispatch|uses:|<input-or-step-name>" .github/workflows
gh workflow list --repo <org>/<repo>
The sibling must exercise the same behavior, not merely run a nearby job. For reusable workflow caller changes, prove that the sibling reaches the same reusable and the same consumed input or install step.
If no sibling can exercise the behavior, report UNVERIFIABLE_PRE_MERGE and stop. Do not fabricate passing evidence from lint, YAML parsing, or a default-branch-triggered run.
Prepare gate variables exactly
If the sibling is gated by a repo variable, capture the prior state first:
gh variable get <NAME> --repo <org>/<repo> || true
gh variable set <NAME> --repo <org>/<repo> --body true
Use a cleanup trap in shell scripts so restoration runs on success, failure, or cancellation. Restore to the exact prior state:
gh variable delete <NAME> --repo <org>/<repo> --yesgh variable set <NAME> --repo <org>/<repo> --body "$PRIOR_VALUE"Dispatch on the branch ref
Dispatch the sibling against the branch under test:
gh workflow run <workflow-file-or-name> --repo <org>/<repo> --ref <branch>
Then locate the run whose headBranch and workflowName match:
gh run list --repo <org>/<repo> --workflow <workflow-file-or-name> --branch <branch> --json databaseId,status,conclusion,headBranch,headSha,createdAt --limit 10
Poll only until the step under test is observable
Watch the run until the target job/step has completed or failed:
gh run view <run-id> --repo <org>/<repo> --json status,conclusion,jobs
gh run view <run-id> --repo <org>/<repo> --log
Capture the smallest log excerpt that proves the step under test used the branch behavior. Keep quotes short; prefer summarized evidence with exact job, step, run id, and conclusion.
Cancel before side effects
As soon as the target step is observed, cancel the run before any expensive or side-effectful stage starts:
gh run cancel <run-id> --repo <org>/<repo>
Side-effectful stages include opening pull requests, pushing branches, creating issues, publishing packages, deploying, running AI agents, or mutating external systems. If the run reaches a side-effectful stage before cancellation, the verification failed even if the target step passed.
Assert zero side effects
Re-read and compare against the baseline:
gh pr list --repo <org>/<repo> --state open --json number,headRefName
gh issue list --repo <org>/<repo> --state open --json number,title --limit 100
gh api -X GET repos/<org>/<repo>/branches --paginate
gh variable list --repo <org>/<repo>
Confirm no branches were created, no PRs were opened, no issues were filed, and every temporary gate variable is restored to its exact prior state, including unset.
VERIFIED: The branch-ref dispatch reached the exact behavior under test, the observed step passed, the run was cancelled before side effects, and cleanup was proven.FAILED: The branch-ref dispatch reached the behavior under test and the observed step failed, or side effects occurred.UNVERIFIABLE_PRE_MERGE: No dispatchable branch-ref path can exercise the behavior before merge.BLOCKED: GitHub auth, permissions, missing variables, or Actions availability prevent a reliable run.Return a concise report with:
gh workflow run ... --ref <branch> command used.workflow_run, schedule, issue_comment, or pull_request_review run as branch-copy evidence for the changed workflow.--ref <branch> when using a sibling workflow for pre-merge proof.UNVERIFIABLE_PRE_MERGE and stop.tools
Configure the official SonarQube plugin + MCP as Lisa's single Sonar substrate across every supported coding agent. Installs/updates the SonarQube CLI, authenticates (browser login on a dev machine, or SONARQUBE_CLI_TOKEN headless), selects the Test Manager target, runs `sonar integrate <agent>` for each supported agent (Claude, Codex, Cursor, Copilot, Antigravity) and wires the MCP for OpenCode, then writes only non-secret policy to .lisa.config.json. Separate from the CI SonarCloud scan gate, which is unchanged.
tools
Configure the official SonarQube plugin + MCP as Lisa's single Sonar substrate across every supported coding agent. Installs/updates the SonarQube CLI, authenticates (browser login on a dev machine, or SONARQUBE_CLI_TOKEN headless), selects the Test Manager target, runs `sonar integrate <agent>` for each supported agent (Claude, Codex, Cursor, Copilot, Antigravity) and wires the MCP for OpenCode, then writes only non-secret policy to .lisa.config.json. Separate from the CI SonarCloud scan gate, which is unchanged.
tools
Configure the official SonarQube plugin + MCP as Lisa's single Sonar substrate across every supported coding agent. Installs/updates the SonarQube CLI, authenticates (browser login on a dev machine, or SONARQUBE_CLI_TOKEN headless), selects the Test Manager target, runs `sonar integrate <agent>` for each supported agent (Claude, Codex, Cursor, Copilot, Antigravity) and wires the MCP for OpenCode, then writes only non-secret policy to .lisa.config.json. Separate from the CI SonarCloud scan gate, which is unchanged.
tools
Configure the official SonarQube plugin + MCP as Lisa's single Sonar substrate across every supported coding agent. Installs/updates the SonarQube CLI, authenticates (browser login on a dev machine, or SONARQUBE_CLI_TOKEN headless), selects the Test Manager target, runs `sonar integrate <agent>` for each supported agent (Claude, Codex, Cursor, Copilot, Antigravity) and wires the MCP for OpenCode, then writes only non-secret policy to .lisa.config.json. Separate from the CI SonarCloud scan gate, which is unchanged.