Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ on:
enforces the coverage floor and, with cli, runs test:matrix:check on the shards' joined argv logs
type: number
default: 1
secrets:
description: >-
Run the gitleaks scan of the whole history. A repository whose pull request security checks already scan it
(cli-core's `security / secrets`) turns it off, and drops `validation / ci / secrets` from its ruleset first
type: boolean
default: true

permissions:
contents: read
Expand Down Expand Up @@ -415,6 +421,7 @@ jobs:
shell: bash

secrets:
if: inputs.secrets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down
6 changes: 6 additions & 0 deletions changes/ci-optional-secrets-job.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### Added

- **`node-ci.yml` has a `secrets` input**: false skips its gitleaks scan of the whole history, for a repository whose
pull request security checks already scan it. It is on by default. Drop `validation / ci / secrets` from the
ruleset before turning it off, or the required check never reports. WC-CI-3 now lets such a repository keep lint,
types and secrets in one place ([CI standards](../docs/standards/ci.md#wc-ci-3--run-the-fast-standards-job-on-every-pull-request-and-every-push-to-main)).
16 changes: 11 additions & 5 deletions docs/standards/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ plus community itself. cli-template follows every rule here as a CLI does
`pnpm lint`, `pnpm docs:lint`, `pnpm run --if-present ci:quick` and a gitleaks scan of the new commits only. A new
commit cancels the run it replaces. The job times out after five minutes, a ceiling for a stalled setup, not an
expected time.
- **Exceptions:** none. Runner queues and cold downloads are outside the budget.
- **Applies to:** the WireCat repositories. **Since:** cli-base 0.41.0. **Rulings:** none.
- **Exceptions:** a repository whose pull request validation runs `node-ci.yml` on every pull request and merge
(its `check` job lints and checks types) may leave `pnpm lint` and `ci:quick` out of this job, and one whose pull
request security checks scan the whole history for secrets may leave out the gitleaks scan. Each check then runs
in one place. cli-core does both (2026-11-26): its `standards` keeps the changelog rule, `standards:check` and
`docs:lint`. Runner queues and cold downloads are outside the budget.
- **Applies to:** the WireCat repositories. **Since:** cli-base 0.41.0. **Rulings:** NEED-2 on cli-core#3386
(2026-11-26).

### WC-CI-4 · Keep `ci:quick` to early bug checks that finish within two minutes

Expand All @@ -56,7 +61,7 @@ plus community itself. cli-template follows every rule here as a CLI does
- tg, max, memo, wa, b24 and cli-template: `pnpm typecheck && pnpm build && pnpm lint:commands`;
- drive: `pnpm typecheck && pnpm lint:commands`, which builds first;
- zoom, cli-base and cli-testing: `pnpm typecheck`;
- cli-core: `pnpm typecheck` and its command lint test;
- cli-core: none since 2026-11-26, its `ci / check` types every pull request (WC-CI-3 exception);
- cli-docs: its unit tests, without the one that needs generated pages;
- community: its script tests.
- **Exceptions:** never put live-account suites, agent suites or platform jobs here. Full tests and coverage run in
Expand Down Expand Up @@ -125,8 +130,9 @@ plus community itself. cli-template follows every rule here as a CLI does
gitleaks scan of the whole history. The shared workflow owns the CLI steps: the repository's `ci.yml` names a step
it cannot run yet in `skip`, with the reason beside it, and puts only its extra checks in `checks` (tg and max:
`pnpm check:agent-docs`).
- **Exceptions:** platform suites (Windows, macOS, install checks) are skipped here and run at release, monthly or on
request. Nothing in this run publishes or tags. cli-docs runs its full validation before each deployment and monthly
- **Exceptions:** the whole-history secret scan is off (node-ci's `secrets` input) in a repository whose pull
request security checks run it, as in cli-core. Platform suites (Windows, macOS, install checks) are skipped here
and run at release, monthly or on request. Nothing in this run publishes or tags. cli-docs runs its full validation before each deployment and monthly
instead; community has no build to validate.
- **Applies to:** the CLIs, cli-base, cli-core and cli-testing. **Since:** cli-base 0.41.0. **Rulings:** none.

Expand Down