Filesystem

  1. NAME:
  2. trivy filesystem - scan local filesystem
  3. USAGE:
  4. trivy filesystem [command options] dir
  5. OPTIONS:
  6. --template value, -t value output template [$TRIVY_TEMPLATE]
  7. --format value, -f value format (table, json, template) (default: "table") [$TRIVY_FORMAT]
  8. --severity value, -s value severities of vulnerabilities to be displayed (comma separated) (default: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL") [$TRIVY_SEVERITY]
  9. --output value, -o value output file name [$TRIVY_OUTPUT]
  10. --exit-code value Exit code when vulnerabilities were found (default: 0) [$TRIVY_EXIT_CODE]
  11. --skip-db-update, --skip-update skip updating vulnerability database (default: false) [$TRIVY_SKIP_UPDATE, $TRIVY_SKIP_DB_UPDATE]
  12. --skip-policy-update skip updating built-in policies (default: false) [$TRIVY_SKIP_POLICY_UPDATE]
  13. --clear-cache, -c clear image caches without scanning (default: false) [$TRIVY_CLEAR_CACHE]
  14. --ignore-unfixed display only fixed vulnerabilities (default: false) [$TRIVY_IGNORE_UNFIXED]
  15. --vuln-type value comma-separated list of vulnerability types (os,library) (default: "os,library") [$TRIVY_VULN_TYPE]
  16. --security-checks value comma-separated list of what security issues to detect (vuln,config) (default: "vuln") [$TRIVY_SECURITY_CHECKS]
  17. --ignorefile value specify .trivyignore file (default: ".trivyignore") [$TRIVY_IGNOREFILE]
  18. --cache-backend value cache backend (e.g. redis://localhost:6379) (default: "fs") [$TRIVY_CACHE_BACKEND]
  19. --timeout value timeout (default: 5m0s) [$TRIVY_TIMEOUT]
  20. --no-progress suppress progress bar (default: false) [$TRIVY_NO_PROGRESS]
  21. --ignore-policy value specify the Rego file to evaluate each vulnerability [$TRIVY_IGNORE_POLICY]
  22. --list-all-pkgs enabling the option will output all packages regardless of vulnerability (default: false) [$TRIVY_LIST_ALL_PKGS]
  23. --offline-scan do not issue API requests to identify dependencies (default: false) [$TRIVY_OFFLINE_SCAN]
  24. --skip-files value specify the file paths to skip traversal [$TRIVY_SKIP_FILES]
  25. --skip-dirs value specify the directories where the traversal is skipped [$TRIVY_SKIP_DIRS]
  26. --config-policy value specify paths to the Rego policy files directory, applying config files [$TRIVY_CONFIG_POLICY]
  27. --config-data value specify paths from which data for the Rego policies will be recursively loaded [$TRIVY_CONFIG_DATA]
  28. --policy-namespaces value, --namespaces value Rego namespaces (default: "users") [$TRIVY_POLICY_NAMESPACES]
  29. --help, -h show help (default: false)