Skip to content
Open
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
4 changes: 2 additions & 2 deletions build-tools/packages/build-cli/docs/build-perf.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ DESCRIPTION
EXAMPLES
Collect public (PR) build data.
$ flub build-perf collect --mode public --project public --buildDefId 11 --outputDir ./output --adoApiToken \
$ flub build-perf collect --mode public --project public --buildDefId 11 --outputDir ./output --adoApiToken `
$ADO_TOKEN
```

Expand Down Expand Up @@ -108,7 +108,7 @@ DESCRIPTION
EXAMPLES
Deploy dashboard for public mode.
$ flub build-perf deploy --mode public --aswaHostname myapp.azurestaticapps.net --dataDir ./data \
$ flub build-perf deploy --mode public --aswaHostname myapp.azurestaticapps.net --dataDir ./data `
--deploymentToken $SWA_TOKEN
```

Expand Down
28 changes: 28 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,30 @@ 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 [-v | --quiet] [--json] [--keep] [--tempDir <value>]

FLAGS
--json Emit JSON instead of a text report.
--keep Do not delete the scratch workspace after running.
--tempDir=<value> Scratch workspace directory (default: <repo-root>/.trust-audit-temp).

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

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