From 2e99fb87abd35f756ed2bfafa045e954dcd7cde2 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 10 Nov 2026 17:19:38 +0000 Subject: [PATCH] fix(ci): give a manual run of scan-and-report.yml its inputs Run 42862049822, the first run of this file by workflow_dispatch, failed at "Run scan": "a value is required for '' but none was supplied". The fetch and build steps of #286 passed in that run. repo_path and fail_on_severity are declared under workflow_call only. A workflow_dispatch run has its own inputs context, so both were empty strings: the scan had no target, and the severity gate would then reject the empty threshold. The step before #286 had the same defect, because it expanded the same empty input. Declare both inputs under workflow_dispatch with the same names and defaults. The expressions in the steps do not change, so an explicit bad value from a caller is still refused. Refs #276 Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_0136P7ZmAsYpFA9gxfQLF3F6 Signed-off-by: Claude --- .github/workflows/scan-and-report.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/scan-and-report.yml b/.github/workflows/scan-and-report.yml index eaa3a7b..1c8e0be 100644 --- a/.github/workflows/scan-and-report.yml +++ b/.github/workflows/scan-and-report.yml @@ -26,7 +26,20 @@ on: VERISIMDB_PAT: description: 'PAT with repo scope for cross-repo dispatch to verisimdb-data' required: false + # A run of this file by hand has its own `inputs`: the workflow_call inputs + # above do not exist for it. Without these two, `inputs.repo_path` and + # `inputs.fail_on_severity` are empty strings, "Run scan" has no target and + # the severity gate rejects the empty threshold. Same names, same defaults. workflow_dispatch: + inputs: + repo_path: + description: 'Path to scan (default: .)' + default: '.' + type: string + fail_on_severity: + description: 'Fail on an unsuppressed finding at or above: none | low | medium | high | critical' + default: 'none' + type: string permissions: contents: read