Skip to content

Harden pre-publish inventory guard: tracked-file-count floor + mockup… #3

Harden pre-publish inventory guard: tracked-file-count floor + mockup…

Harden pre-publish inventory guard: tracked-file-count floor + mockup… #3

Workflow file for this run

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