Skip to main content
The endorctl rule-set command manages SAST rules in your Endor Labs namespace.

Usage

endorctl rule-set [subcommand] [flags]

rule-set import

The endorctl rule-set import command imports SAST rules from a local .tar or .gz archive into your Endor Labs namespace. Endor Labs imports every .yaml and .yml file in the archive and tags each rule with the version you specify.
endorctl rule-set import \
  --namespace <namespace> \
  --file-path <path-to-archive> \
  --rule-version <version>

Options

How to use rule-set command

  • Validate a rule archive before importing it.
    endorctl rule-set import \
      --namespace my-org \
      --file-path ./my-rules.tar.gz \
      --rule-version v1.2.0 \
      --dry-run
    
  • Import rules into a namespace.
    endorctl rule-set import \
      --namespace my-org \
      --file-path ./my-rules.tar.gz \
      --rule-version v1.2.0