Skip to content

Fix(fuzz): Convert fuzz_seconds to a number #377

Closed

Description

This was generated by AI during triage.

Summary

Every manual dispatch of fuzz-sarif-publish.yaml fails before any repository is fuzzed. The dispatch input fuzz_seconds reaches the reusable-workflow call as a string, and the called workflow's number input refuses it.

Evidence

The first dispatch after #374 merged, a dry run on grype-scan-action at 805caa2:
https://github.com/lfreleng-actions/.github/actions/runs/44738248890

  • Discovery, the harness search and the summary all succeeded. The search found both harnesses in grype-scan-action, so FUZZ_SARIF_PAT works.

  • The per-repository call never started, and the run concluded failure with seven copies of one annotation:

    evaluate reusable workflow inputs: .github/workflows/fuzz-sarif-publish.yaml (Line: 244, Col: 21): Unexpected value '300'
    
  • Line 244 is fuzz_seconds: ${{ inputs.fuzz_seconds || 300 }}. The workflow_dispatch input is declared type: number with default: 300; fuzz-sarif-repository.yaml declares its workflow_call input fuzz_seconds as type: number.

The dry_run boolean beside it passed without complaint. A scheduled run has no inputs, so it should take the literal 300 and is probably unaffected; it has not run yet.

Desired behaviour

  • A dispatch with or without fuzz_seconds, and a scheduled run, all pass a number to the call. One expression that works whether the value arrives as a string, a number or absent, for example ${{ fromJSON(format('{0}', inputs.fuzz_seconds || 300)) }}. Confirm the form against GitHub's documentation for the inputs context and expression coercion.
  • A value that is not a positive whole number fails clearly, in a job that runs before the repository calls, rather than at call expansion with GitHub's message.
  • dry_run stays as it is unless the same rule turns out to apply to it.

Acceptance criteria

  • Line 244's expression converts fuzz_seconds explicitly, and the comment beside it says why.
  • A test in test_fuzz_workflow.py pins that conversion, so a bare inputs.fuzz_seconds || 300 fails the suite.
  • A bad fuzz_seconds is refused by name before any repository job starts, with a test.
  • actionlint, yamllint, zizmor --persona auditor with zero findings, and the repository's hooks pass.
  • After merge, a maintainer's dry_run dispatch on grype-scan-action reaches the per-repository jobs. The pull request body asks for this, since the session cannot dispatch.

Out of scope

Anything else in the publisher. Review rounds on #374 are the reference for this workflow's design: #374

Activity

  1. added
    CI
    bug
    on Nov 20, 2026
  2. lf-releng-code-monkey-bot commented on Nov 20, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 An AI agent has proposed a change for this issue: pull request #378 (head 38da313). The Copilot review of it has findings (2 unresolved review threads; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge.

  3. lf-releng-code-monkey-bot commented on Nov 20, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 1: an AI agent revised pull request #378 (head 1517f93). Round 1: fixed both Copilot findings by amending the single commit. No rebase: the branch already sits on the default branch's head and is mergeable. - Falsy dispatch values (PRRT_kwDORqP1Us65_oAB): fixed. Only scheduled runs take the default 300 now. check-inputs checks the value and outputs it, and the repository call converts that output with fromJSON. Tests pin this and cover 0 and empty. - Slack alert on check failure (PRRT_kwDORqP1Us65_oAb): fixed. notify-failure now needs check-inputs, with a test. Ran pytest, prek on the changed files, zizmor auditor, the aislop gate and gitlint. All passed. No failing checks were reported. Still to do: after merge, a maintainer runs a dry_run dispatch on grype-scan-action.. The Copilot review of it is clean. Still pending after 8 minutes and not waited for, so its result is unknown: pre-commit.ci - pr. An antagonistic review was requested from the review bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions