Skip to content

Commit

Permalink
docs(data): update missing datafiles for commands
Browse files Browse the repository at this point in the history
  • Loading branch information
gotbadger committed Aug 28, 2023
1 parent c31d6c1 commit 3d4fdf9
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 103 deletions.
3 changes: 1 addition & 2 deletions docs/_data/bearer_ignore_add.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ usage: ' ignore add <fingerprint> [flags]'
options:
- name: author
shorthand: a
usage: |
Specify report format (json, yaml, sarif, gitlab-sast, rdjson, html)
usage: Add author information to this ignored finding.
- name: comment
usage: Add a comment to this ignored finding.
- name: force
Expand Down
2 changes: 1 addition & 1 deletion docs/_data/bearer_ignore_migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ example: |-
$ bearer ignore migrate
see_also:
- ' ignore - Manage ignored fingerprints'
aliases:
aliases:
200 changes: 100 additions & 100 deletions docs/_data/bearer_scan.yaml
Original file line number Diff line number Diff line change
@@ -1,107 +1,107 @@
name: " scan"
name: ' scan'
synopsis: Scan a directory or file
usage: " scan [flags] <path>"
usage: ' scan [flags] <path>'
options:
- name: api-key
usage: Use your Bearer API Key to send the report to Bearer.
- name: config-file
default_value: bearer.yml
usage: Load configuration from the specified path.
- name: context
usage: |
Expand context of schema classification e.g., --context=health, to include data types particular to health
- name: data-subject-mapping
usage: |
Override default data subject mapping by providing a path to a custom mapping JSON file
- name: debug
default_value: "false"
usage: Enable debug logs. Equivalent to --log-level=debug
- name: debug-profile
default_value: "false"
usage: Generate profiling data for debugging
- name: disable-default-rules
default_value: "false"
usage: Disables all default and built-in rules.
- name: disable-domain-resolution
default_value: "true"
usage: |
Do not attempt to resolve detected domains during classification
- name: disable-version-check
default_value: "false"
usage: Disable Bearer version checking
- name: domain-resolution-timeout
default_value: 3s
usage: |
Set timeout when attempting to resolve detected domains during classification, e.g. --domain-resolution-timeout=3s
- name: exclude-fingerprint
default_value: "[]"
usage: |
Specify the comma-separated fingerprints of the findings you would like to exclude from the report.
- name: exit-code
default_value: "-1"
usage: |
Force a given exit code for the scan command. Set this to 0 (success) to always return a success exit code despite any findings from the scan.
- name: external-rule-dir
default_value: "[]"
usage: |
Specify directories paths that contain .yaml files with external rules configuration
- name: force
default_value: "false"
usage: Disable the cache and runs the detections again
- name: format
shorthand: f
usage: |
Specify report format (json, yaml, sarif, gitlab-sast, rdjson, html)
- name: help
shorthand: h
default_value: "false"
usage: help for scan
- name: host
default_value: my.bearer.sh
usage: Specify the Host for sending the report.
- name: internal-domains
default_value: "[]"
usage: |
Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains=".*.my-company.com,private.sh"
- name: log-level
default_value: info
usage: Set log level (error, info, debug, trace)
- name: no-color
default_value: "false"
usage: Disable color in output
- name: only-rule
default_value: "[]"
usage: |
Specify the comma-separated ids of the rules you would like to run. Skips all other rules.
- name: output
usage: Specify the output path for the report.
- name: parallel
default_value: "0"
usage: Specify the amount of parallelism to use during the scan
- name: quiet
default_value: "false"
usage: Suppress non-essential messages
- name: report
default_value: security
usage: Specify the type of report (security, privacy, dataflow).
- name: scanner
default_value: "[sast]"
usage: |
Specify which scanner to use e.g. --scanner=secrets, --scanner=secrets,sast
- name: severity
default_value: critical,high,medium,low,warning
usage: Specify which severities are included in the report.
- name: skip-path
default_value: "[]"
usage: |
Specify the comma separated files and directories to skip. Supports * syntax, e.g. --skip-path users/*.go,users/admin.sql
- name: skip-rule
default_value: "[]"
usage: |
Specify the comma-separated ids of the rules you would like to skip. Runs all other rules.
- name: api-key
usage: Use your Bearer API Key to send the report to Bearer.
- name: config-file
default_value: bearer.yml
usage: Load configuration from the specified path.
- name: context
usage: |
Expand context of schema classification e.g., --context=health, to include data types particular to health
- name: data-subject-mapping
usage: |
Override default data subject mapping by providing a path to a custom mapping JSON file
- name: debug
default_value: "false"
usage: Enable debug logs. Equivalent to --log-level=debug
- name: debug-profile
default_value: "false"
usage: Generate profiling data for debugging
- name: disable-default-rules
default_value: "false"
usage: Disables all default and built-in rules.
- name: disable-domain-resolution
default_value: "true"
usage: |
Do not attempt to resolve detected domains during classification
- name: disable-version-check
default_value: "false"
usage: Disable Bearer version checking
- name: domain-resolution-timeout
default_value: 3s
usage: |
Set timeout when attempting to resolve detected domains during classification, e.g. --domain-resolution-timeout=3s
- name: exclude-fingerprint
default_value: '[]'
usage: |
Specify the comma-separated fingerprints of the findings you would like to exclude from the report.
- name: exit-code
default_value: "-1"
usage: |
Force a given exit code for the scan command. Set this to 0 (success) to always return a success exit code despite any findings from the scan.
- name: external-rule-dir
default_value: '[]'
usage: |
Specify directories paths that contain .yaml files with external rules configuration
- name: force
default_value: "false"
usage: Disable the cache and runs the detections again
- name: format
shorthand: f
usage: |
Specify report format (json, yaml, sarif, gitlab-sast, rdjson, html)
- name: help
shorthand: h
default_value: "false"
usage: help for scan
- name: host
default_value: my.bearer.sh
usage: Specify the Host for sending the report.
- name: internal-domains
default_value: '[]'
usage: |
Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains=".*.my-company.com,private.sh"
- name: log-level
default_value: info
usage: Set log level (error, info, debug, trace)
- name: no-color
default_value: "false"
usage: Disable color in output
- name: only-rule
default_value: '[]'
usage: |
Specify the comma-separated ids of the rules you would like to run. Skips all other rules.
- name: output
usage: Specify the output path for the report.
- name: parallel
default_value: "0"
usage: Specify the amount of parallelism to use during the scan
- name: quiet
default_value: "false"
usage: Suppress non-essential messages
- name: report
default_value: security
usage: Specify the type of report (security, privacy, dataflow).
- name: scanner
default_value: '[sast]'
usage: |
Specify which scanner to use e.g. --scanner=secrets, --scanner=secrets,sast
- name: severity
default_value: critical,high,medium,low,warning
usage: Specify which severities are included in the report.
- name: skip-path
default_value: '[]'
usage: |
Specify the comma separated files and directories to skip. Supports * syntax, e.g. --skip-path users/*.go,users/admin.sql
- name: skip-rule
default_value: '[]'
usage: |
Specify the comma-separated ids of the rules you would like to skip. Runs all other rules.
example: |4-
# Scan a local project, including language-specific files
$ bearer scan /path/to/your_project
see_also:
- " - "
- ' - '
aliases: s

0 comments on commit 3d4fdf9

Please sign in to comment.