Skip to content

fix(ci): give a manual run of scan-and-report.yml its inputs - #287

Merged
hyperpolymath merged 1 commit into
mainfrom
marina/optimistic-cray-js64k7
Nov 10, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
marina/optimistic-cray-js64k7

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #286. Refs #276.

What failed

Run 42862049822 was the first run of scan-and-report.yml by workflow_dispatch. It ran on the #286 branch before the merge.

Cause

repo_path and fail_on_severity are declared under workflow_call only. A workflow_dispatch run has its own inputs context, so both values were empty strings.

  • The scan had no target.
  • The severity gate would then reject the empty threshold (fail_on_severity must be one of ...).

The step before #286 expanded the same empty input, so this path did not work before #286 either. #286 did not cause it. The first manual run showed it.

Change

Declare both inputs under workflow_dispatch, with the same names and the same defaults (. and none).

The expressions in the steps do not change. An explicit bad value from a caller is still refused.

Evidence: hosted run 42863864116 on 2e99fb8

Added after the merge. The run was a workflow_dispatch on this branch.

Step Result
Fetch the scanner source Pass. The log shows scanner source: hyperpolymath/panic-attack@2e99fb87abd35f756ed2bfafa045e954dcd7cde2, the commit under test.
Build the scanner Pass, 2 min 34 s.
Run scan Pass. REPO_PATH: ., then Report saved to: scan-result.json.
Enforce severity gate Skipped, which is correct for the default none.
Send to verisimdb-data Fail: HTTP 401, Bad credentials.

The last step is not part of this change. The VERISIMDB_PAT secret of this repository is set, and GitHub refuses it. The step fails loudly by design. The owner must replace or remove that secret.

This run shows the second acceptance criterion of #276: a run of this workflow in its own repository builds the commit under test.

Not shown

The external caller case of #276. That still needs a caller that pins a commit with #286, for example echidna's security-scan.yml.

🤖 Generated with Claude Code

https://claude.ai/code/session_0136P7ZmAsYpFA9gxfQLF3F6

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>
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: fea79fa4-6137-4d86-8e57-341cf397f974
Commits

Reviewing files that changed from the base of the PR and between 4f51cca and 2e99fb8.

Files selected for processing: 1

  • .github/workflows/scan-and-report.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 10, 2026 17:22
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T17:22:31.425120Z
We couldn’t complete this review. Comment @codex review to try again.
2e99fb8 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@hyperpolymath
hyperpolymath merged commit 55ffcc9 into main Nov 10, 2026
69 of 70 checks passed
@hyperpolymath
hyperpolymath deleted the marina/optimistic-cray-js64k7 branch November 10, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants