Skip to content

fix(cli): ci prints the report's own address; docs: issues and findings, Shopify and Storyblok configs (#1730 #1738 #695) - #1800

Closed
nc9 wants to merge 1 commit into
mainfrom
docs/1730-report-host
Closed

nc9 wants to merge 1 commit into
mainfrom
docs/1730-report-host

Conversation

@nc9

@nc9 nc9 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

One draft for three small issues. DCO signed.

#1730 (last open criterion: one report host)

squirrel ci printed https://reports.squirrelscan.com/<id> while audit and report print the org's <org>.squirrel.report address. It now reads the address from GET /v1/reports/:id (url) and prints that, on the Report: line and in --json; it falls back to the id on the legacy host (which redirects) only when the address cannot be read or is not https. Tests: the address wins; unreadable, http, malformed and missing fall back. docs/cli/ci.mdx example uses the org address. The remaining reports.squirrelscan.com mentions are the badge host (/b/..., which stays by design) and links to the demo report by id, which redirect.

#1738 (docs: issues are action plans covering findings)

docs/developers/mcp.mdx: new section 'Issues and findings' (defines an issue and a finding, the field table: priority, type, effort, labels, source, assigned_to, state_reason, closed_at, body_md, covered_findings and its counts, the sort order, and the transition note that rule_id, occurrences and affected_pages are kept and partial for multi-rule issues); the list_issues and get_issue rows updated. cli/mcp.mdx, guides/cloud-audits.mdx and guides/fix-your-site-with-an-ai-agent.mdx use the same definitions (the guide no longer describes an issue as one failing rule: an issue closes when every finding it covers is resolved). The CLI-shows-findings-only note was added in #1796.

#695 (Shopify and Storyblok configs)

The reporter's sanitised bundle is committed as regression fixtures (apps/cli/tests/fixtures/stack-configs/, with a provenance header and the contributor's own 'Provisional' markers kept) with a test that each parses, passes config validate (every [rule_options] and [[ignore]] entry) and disables only rules that exist. New guide docs/guides/shopify-and-storyblok.mdx documents only the exclusions the contributor marked established, each with its rule and platform reason; the provisional perf disables are named as such and not recommended. Limit, stated in the guide: we did not re-verify each exclusion against a live site, so the 'verified against a live example' criterion is not claimed. #672, #664, #665 and #671 are not cross-linked from the guide (they are not shipped rule behaviour); the issue can be closed once this merges, as 'adopted as fixtures and docs'.

Gates: cli format:check, lint, typecheck; tests/ci, config-validate and the new fixtures test; docs make validate. Agent skill: no change. CHANGELOG: one Fixed bullet (ci address); the docs and fixtures carry none.

Does prod return the address the ci change reads?

Yes, for the cases that matter. GET /v1/reports/:id returns url: await reportUrlForOrg(db, c.env, report.id, report.orgId) (the org's <org>.squirrel.report address): apps/api/src/routes/v1/reports.ts:4700 on private origin/main 737e28cdb. A public or unlisted report is served without an identity. A PRIVATE report answers 404 unless the caller is a sqcli_ token or Clerk session of its owner (reports.ts:4668-4682, never an API key), so squirrel ci with an API key on a private report gets no address and takes the fallback: the id on reports.squirrelscan.com, which redirects. The published OpenAPI Report schema already lists url.

…nd findings, Shopify and Storyblok configurations #1730 #1738 #695

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Landed in bundle #1805, rebase-merged to main.

nik

@nc9 nc9 closed this Nov 13, 2026
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.

1 participant