Skip to content

build: run the privacy check in verify and catch Windows paths - #15

Merged
autoantohaki merged 1 commit into
mainfrom
fix/run-privacy-check
Oct 22, 2026
Merged

autoantohaki merged 1 commit into
mainfrom
fix/run-privacy-check

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Requested by mau

Summary

Before: scripts/privacy-check.mjs existed, but no npm script, verify step or workflow ran it, so tracked files were never scanned for personal paths or keys. Its Windows pattern also only matched the JSON-escaped form C:\Users\. A plain C:\Users\name\... path passed the check.

After: npm run check:privacy runs first in npm run verify, so CI and the release workflow enforce it. The Windows pattern matches both single- and double-backslash profile paths. The current tree passes.

How: a new check:privacy script in package.json, regex patterns in the check, and a CHANGELOG line. To verify, I staged a file containing C:\Users\mau\file: the new check rejects it and the version on main passes it.

Verification

  • npm run verify
  • Documentation updated (CHANGELOG)
  • No credentials or machine-specific paths added

scripts/privacy-check.mjs was added but no npm script, verify step or
workflow ever ran it, so tracked files were never scanned for personal
paths or secrets. Its Windows pattern also only matched JSON-escaped
paths (C:\Users\), missing the common single-backslash form.

Add a check:privacy script, run it first in verify (which CI and the
release workflow call), and match both forms of Windows profile path.
@autoantohaki
autoantohaki force-pushed the fix/run-privacy-check branch from d5dbf46 to 90b0306 Compare October 22, 2026 00:10
@autoantohaki
autoantohaki merged commit 6ee4269 into main Oct 22, 2026
4 of 5 checks passed
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