Skip to content

Secrets & keys

Password, token or key written to the logslaunch.sensitive-console-log

Logs are copied to your host, error tracker and anyone with dashboard access, and are kept for weeks. A secret logged once is a secret shared with all of them.

  • In force Rule launch.sensitive-console-log
  • 3 clauses

At a glance

launch.sensitive-console-log
Severitymedium
CertaintyObserved — the code as written is the problem
Looks atyour source code
When it runsRuns on every scan

How to fix it

Remove the value from the log call, or log a redacted form (e.g. the last 4 characters) only when debugging.

Check your own app

Run npx scanlyfix scan in your project. Every finding gets an id; after fixing, npx scanlyfix verify <id> proves it is gone.

If it is a false positive in your project, silence that one line with // scanlyfix-ignore-next-line launch.sensitive-console-log -- <why>.

All rules

Your code stays
on your machine

Only findings are uploaded, and only to your own dashboard.