Harden pre-publish inventory guard: tracked-file-count floor + mockup… #3
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
| name: lint-secrets | |
| # Runs the custom ESLint rule `@workspace/secrets/no-secret-equality` | |
| # against the source trees that handle secrets. The rule uses TypeScript | |
| # program type information to flag `===` / `==` / `Buffer.equals` | |
| # against any value branded `Secret<T>` from `@workspace/wire-core`. | |
| # | |
| # This replaces the narrower grep guard contemplated by #257 — see | |
| # `docs/security-audit-public-2026-04.md` §R-9.12 for the migration | |
| # record (including what this rule catches that the grep could not). | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| lint-secrets: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run lint | |
| - run: pnpm run test:lint-rules |