Skip to content

bug: Action format input JSON silently falls back to markdown #124

Description

@aryamthecodebreaker

What happened?

Action format input is compared with strict equality to "json". Any other spelling — including JSON or Json — silently falls back to markdown.

// packages/action/src/runner.ts
const format = readInput("format", env) === "json" ? "json" : "markdown";

Injected run with INPUT_FORMAT: "JSON" and a stub report: stdout began with # FixMap Report (markdown), not {.

CLI rejects JSON/Markdown with an explicit invalid-option error. Action and CLI disagree, and Action fails open to the wrong format.

How can we reproduce it?

- uses: aryamthecodebreaker/FixMap@v0.7.3
  with:
    issue: password reset emails fail
    format: JSON

Read step stdout / report output — markdown, not JSON.

What did you expect instead?

Case-insensitive accept of json/markdown, or fail the step on unknown values (match CLI). Never silently rewrite JSON → markdown.

FixMap version or commit

v0.7.3 / main

Where did this happen?

GitHub Action

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueApproachable contribution with a clear scope

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions