Skip to content

Commit 2e99fb8

Browse files
committed
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 '<TARGET>' 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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136P7ZmAsYpFA9gxfQLF3F6 Signed-off-by: Claude <noreply@anthropic.com>
1 parent 4f51cca commit 2e99fb8

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/workflows/scan-and-report.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,20 @@ on:
2626
VERISIMDB_PAT:
2727
description: 'PAT with repo scope for cross-repo dispatch to verisimdb-data'
2828
required: false
29+
# A run of this file by hand has its own `inputs`: the workflow_call inputs
30+
# above do not exist for it. Without these two, `inputs.repo_path` and
31+
# `inputs.fail_on_severity` are empty strings, "Run scan" has no target and
32+
# the severity gate rejects the empty threshold. Same names, same defaults.
2933
workflow_dispatch:
34+
inputs:
35+
repo_path:
36+
description: 'Path to scan (default: .)'
37+
default: '.'
38+
type: string
39+
fail_on_severity:
40+
description: 'Fail on an unsuppressed finding at or above: none | low | medium | high | critical'
41+
default: 'none'
42+
type: string
3043

3144
permissions:
3245
contents: read

0 commit comments

Comments
 (0)