Repository navigation
canship 0.3.2
Highlights
- API authentication checks now cover server routes beyond Next.js: SvelteKit (
+serverendpoints), Nuxt (server/apiandserver/routes), Remix and React Router (modules inapp/routesexportingloaderoraction), and Astro (endpoints insrc/pages). Admin clients are followed through$lib,~/, and Nuxtserver/utilsauto-imports. - An authentication check in SvelteKit
hooks.serveror Nuxtserver/middlewarelowers confidence instead of hiding the finding, because the routes it covers are decided in code.
Fixes
- Common guards are now recognised: optional-chained session checks (
if (!session?.user)), ClerkuserIdredirects, SvelteKiterror(401), NuxtcreateError({ statusCode: 401 }),requireUserId, andrequireUserSession. Previously the first two were reported as P0 admin access without authentication on Next.js routes. - A scanned file could make a scan take minutes: long whitespace after
createClient, or after a CORSorigin: functioncallback. Both are now linear.
Release
Published from GitHub Actions through npm trusted publishing with staged approval. The package carries SLSA provenance linking it to this tag; verify with npm audit signatures.
Usage
npx canship@0.3.2 .For the GitHub Action, set version: '0.3.2' explicitly.
Requires Node.js 18 or later. No runtime dependencies. Scanning does not execute project code or use the network; package installation may access npm.
Package on npm · Documentation · 简体中文
Source commit: 2ac2a7b1b5870d97cddc0951b5b70ce85c9f9102. This release identifies the source corresponding to the published npm package; subsequent Action-default changes are not included.