Skip to content

v0.15.2

Choose a tag to compare

@github-actions github-actions released this 18 Sep 02:27
· 54 commits to main since this release
bd70d3f

Migration: none required. Two commands that exited 0 without doing their work now exit 2.

Fixed

  • A mistyped or unavailable subcommand no longer exits 0. websec <word> falls back to
    run <word> for point-and-go, but the fallback was unconditional, so any unknown word
    became a scan target: websec gate --help on a build without gate printed run's help
    and exited 0, making a missing command indistinguishable from a present one. The fallback
    now requires the argument to be an existing path, and otherwise exits 2 with a near-match
    suggestion. websec <existing-path> is unchanged.
  • websec gate no longer reports a pass when it could not determine what to analyse. If
    git status failed — timeout, index.lock contention, non-zero exit — the changed-file
    set came back empty and labelled working-tree, which is exactly what a genuinely clean
    tree returns, so the gate passed having analysed nothing. That state is now
    working-tree-unavailable and exits 2. A genuinely clean tree still passes.