# Format: google3/devtools/metadata/metadata.proto (go/google3metadata)

name: "csp_evaluator"
language: JAVASCRIPT
description: "Library to check the security of a CSP"

third_party {
  url {
    type: HOMEPAGE
    value: "https://github.com/google/csp-evaluator"
  }
  url {
    type: GIT
    value: "https://github.com/google/csp-evaluator"
  }
  version: "1.0.1"
  last_upgrade_date { year: 2021 month: 3 day: 16 }
}

presubmit: {
  review_notify: "csp-collector"

  check_tests: {
    project: "csp_evaluator"
  }
}

# Copybara presubmit
presubmit: {
  path_expression: "//depot/google3/third_party/csp_evaluator/..."
  path_expression_exclusion: "//depot/.../METADATA"
  path_expression_exclusion: "//depot/.../OWNERS"
  path_expression_exclusion: "//depot/.../copy.bara.sky"
  check_presubmit_service: {
    base: {
      id: "Copybara-Review"
      disable_tags: "GIT_ORIGIN_REV_ID"
      disable_tags: "SKIP_COPYBARA"
    }
    action: REVIEW
    streaming: true
    timeout: 30
    failure_status: WARNING
    execution_mode: SECONDARY_EXECUTION
    include_all_opened_files: true
    include_deleted_files: true
    address: "blade:copybara-streaming-presubmit-service-prod"
    options: "depot_path=//depot/google3/third_party/csp_evaluator/copy.bara.sky;workflow=presubmit_piper_to_github;blocking=false"
  }
  check_presubmit_service: {
    base: {
      id: "Copybara-Submit"
      disable_tags: "GIT_ORIGIN_REV_ID"
      disable_tags: "SKIP_COPYBARA"
    }
    action: SUBMIT
    streaming: true
    timeout: 600
    failure_status: ERROR
    execution_mode: SECONDARY_EXECUTION
    include_all_opened_files: true
    include_deleted_files: true
    address: "blade:copybara-streaming-presubmit-service-prod"
    options: "depot_path=//depot/google3/third_party/csp_evaluator/copy.bara.sky;workflow=presubmit_piper_to_github;category_suffix=ise-seam;blocking=true"
  }
}
presubmit: {
  include_presubmit: "//depot/google3/javascript/security/csp/csp_evaluator/METADATA"
}
