Repository navigation
Conversation
…nd findings, Shopify and Storyblok configurations #1730 #1738 #695 Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Author
|
Landed in bundle #1805, rebase-merged to main. nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One draft for three small issues. DCO signed.
#1730 (last open criterion: one report host)
squirrel ciprintedhttps://reports.squirrelscan.com/<id>whileauditandreportprint the org's<org>.squirrel.reportaddress. It now reads the address fromGET /v1/reports/:id(url) and prints that, on theReport: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.mdxexample uses the org address. The remainingreports.squirrelscan.commentions 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 thatrule_id,occurrencesandaffected_pagesare kept and partial for multi-rule issues); thelist_issuesandget_issuerows updated.cli/mcp.mdx,guides/cloud-audits.mdxandguides/fix-your-site-with-an-ai-agent.mdxuse 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, passesconfig validate(every[rule_options]and[[ignore]]entry) and disables only rules that exist. New guidedocs/guides/shopify-and-storyblok.mdxdocuments 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/:idreturnsurl: await reportUrlForOrg(db, c.env, report.id, report.orgId)(the org's<org>.squirrel.reportaddress):apps/api/src/routes/v1/reports.ts:4700on private origin/main737e28cdb. A public or unlisted report is served without an identity. A PRIVATE report answers 404 unless the caller is asqcli_token or Clerk session of its owner (reports.ts:4668-4682, never an API key), sosquirrel ciwith an API key on a private report gets no address and takes the fallback: the id onreports.squirrelscan.com, which redirects. The published OpenAPIReportschema already listsurl.