Skip to main content
Besides JavaScript and TypeScript sources, loadwise sec (and loadwise check) reads a set of project files as inputs. In a Git repository it reads tracked files; outside Git it walks the folder and skips node_modules, build output and .env* files. Files over 1 MiB, binary files and lockfiles are skipped.

Supported formats

Workflow run: steps that call node <script> also mark that script as an entry point for the maintainability checker’s unused-file analysis.

Not checked yet

These formats and checks are known gaps, roughly in order of practical impact.

Performance

  • Dockerfile layer caching: COPY . . before the dependency install, which reinstalls every dependency on any source change. Not checked.
  • Missing .dockerignore: a Dockerfile that copies the whole context with no .dockerignore excluding node_modules. Not checked.
  • GitHub Actions dependency cache: actions/setup-node without cache: before npm ci. Not checked.
  • Final image size: development dependencies or NODE_ENV not production in the final stage. Not checked.

Security and reliability

  • GitHub Actions permissions: workflows without a top-level or job-level permissions block. Not checked, because the default token scope depends on repository settings.
  • GitHub Actions timeouts and concurrency: jobs without timeout-minutes (default 360 minutes) or concurrency. Not checked.
  • Kubernetes resources and probes: containers without resource requests or limits, or without liveness and readiness probes. Not checked; a namespace LimitRange can supply defaults.
  • Kubernetes beyond privileged: runAsNonRoot, allowPrivilegeEscalation, hostNetwork, hostPath and :latest images. Not checked.
  • Compose: services without healthcheck, restart or resource limits, privileged: true, and image: without a tag. Only literal secrets are checked.
  • Yarn and pnpm installs in Dockerfiles without --frozen-lockfile or --immutable. Only npm install is checked.
  • Helm charts: templates are not rendered; render them (helm template) and scan the output.
  • Web server and hosting headers: missing security headers are not reported, because a proxy, CDN or the application can add them. Rewrites and proxies to a host taken from the request path, Nginx include files outside the recognised folders, and headers inherited across Nginx or Apache blocks are not checked.
  • Other CI platforms: Azure Pipelines repository resources and template references (template: x@repo) are not checked for pinning, nor are Bitbucket pipe versions, GitLab services: images, $[[ inputs ]] and template parameters spliced into scripts, or variables that copy an untrusted value under another name before a script parses it.
  • package.json scripts: --unsafe-perm is not reported (a no-op since npm 7), and download-and-run steps in a separate script file that a lifecycle script calls are not followed.

Formats not read

Infrastructure-as-code other than Terraform .tf files (CloudFormation, Pulumi, .tf.json), and tsconfig.json compiler options are not checked as inputs. GitHub workflows of a monorepo are read only when the scanned folder contains .github/workflows/.