Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to forge will be documented in this file. Format follows [Ke

## [Unreleased]

### Fixed

- **`TestCmd_Subcommand_Verify_JSON` failed on any checkout with no diff against `main`** (the nightly macOS/Windows jobs, and any branch already merged). It ran `verify` without `--root`, so it inspected the checkout itself, and since 1.10.8 `ship` warns "nothing to ship" there. The test now uses an isolated `t.TempDir()` root like its sibling tests. Test-only; no behaviour change.

## [1.10.9] — 2026-09-21 — `forge scan security` stops failing on test fixtures, and `.forge/waivers` is finally honoured

Both fixes were found running `forge scan security` on a real Next.js/Supabase repo, where it exited non-zero on 56 findings that were all placeholders. Patch release: bug fixes plus one additive result field (`waived`); no breaking change.
Expand Down
6 changes: 5 additions & 1 deletion internal/cli/cmdship/ship_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ func TestCmd_Subcommand_Verify_JSON(t *testing.T) {
var out, errBuf bytes.Buffer
cmd.SetOut(&out)
cmd.SetErr(&errBuf) // keep stderr separate so deprecation notice doesn't corrupt stdout JSON
cmd.SetArgs([]string{"verify", "--json"})
// A fresh, isolated root: without --root, verify inspects the checkout the test
// runs in, and since 1.10.8 ship warns "nothing to ship" on any checkout with no
// diff against main (the nightly on main, and any branch already merged) — so the
// test only passed on branches with unmerged changes.
cmd.SetArgs([]string{"verify", "--json", "--root", t.TempDir()})
if err := cmd.Execute(); err != nil {
t.Fatalf("verify subcommand failed: %v\n%s", err, out.String())
}
Expand Down
Loading