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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ docs/resources/_gen/
# PNPM store (when mounting host file system in docker container)
.pnpm-store/

# Scratch dir created by `flub check trustPolicy`.
**/.trust-audit-temp/

# TODO: This can be removed once the `flub add changeset` command no longer creates the UPCOMING file.
UPCOMING.md

Expand Down
33 changes: 33 additions & 0 deletions build-tools/packages/build-cli/docs/check.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Check commands are used to verify repo state, apply policy, etc.
* [`flub check layers`](#flub-check-layers)
* [`flub check policy`](#flub-check-policy)
* [`flub check prApproval`](#flub-check-prapproval)
* [`flub check trustPolicy`](#flub-check-trustpolicy)

## `flub check buildVersion`

Expand Down Expand Up @@ -210,3 +211,35 @@ DESCRIPTION
```

_See code: [src/commands/check/prApproval.ts](https://github.com/microsoft/FluidFramework/blob/main/build-tools/packages/build-cli/src/commands/check/prApproval.ts)_

## `flub check trustPolicy`

Audits the repo's lockfile against pnpm's `no-downgrade` trust policy.

```
USAGE
$ flub check trustPolicy [--json] [-v | --quiet] [--keep] [--path <value>] [--tempDir <value>]

FLAGS
--keep Do not delete the scratch workspace after running.
--path=<value> Path inside the workspace to audit. The most specific workspace (e.g. a release group like
`server/routerlicious` rather than the repo root) containing this path is used. Defaults to the
current working directory.
--tempDir=<value> Scratch workspace directory (default: <workspace>/.trust-audit-temp).

LOGGING FLAGS
-v, --verbose Enable verbose logging.
--quiet Disable all logging.

GLOBAL FLAGS
--json Format output as json.

DESCRIPTION
Audits the repo's lockfile against pnpm's `no-downgrade` trust policy.

Materializes a scratch workspace under `.trust-audit-temp/` containing one leaf project per pinned dependency, then
runs `pnpm install --trust-policy no-downgrade` and iteratively excludes each violation until pnpm either succeeds or
stops surfacing new violations. Reports the full list of trust-downgrade violations.
```

_See code: [src/commands/check/trustPolicy.ts](https://github.com/microsoft/FluidFramework/blob/main/build-tools/packages/build-cli/src/commands/check/trustPolicy.ts)_
Loading
Loading