exec

Usage

rsr exec [-p POLICY_PATH...] [-o OUTPUT] INPUT

Description

Executes policies against input data. The input defaults to standard input. Output will be one or more SARIF reports.

Example

$ gh api /repos/reposaur/reposaur | rsr exec
# { ... }
$ gh api /orgs/reposaur/repos | rsr exec
# { ... }
# { ... }
# { ... }
$ rsr exec repo.json
# {...}

Flags

NameDescription
-o, --outputOutput filename. Defaults to standard output (-)
-p, --policyPath to policy files or directories. Defaults to current working directory
-t, --traceEnable tracing. Defaults to false