{
  "name": "github",
  "title": "GitHub",
  "version": "2.10.0",
  "release": "ga",
  "description": "Collect logs from GitHub with Elastic Agent.",
  "type": "integration",
  "download": "/epr/github/github-2.10.0.zip",
  "path": "/package/github/2.10.0",
  "icons": [
    {
      "src": "/img/github.svg",
      "path": "/package/github/2.10.0/img/github.svg",
      "title": "GitHub",
      "size": "1024x1024",
      "type": "image/svg+xml"
    }
  ],
  "conditions": {
    "kibana": {
      "version": "^8.16.0 || ^9.0.0"
    }
  },
  "owner": {
    "type": "elastic",
    "github": "elastic/security-service-integrations"
  },
  "categories": [
    "security",
    "productivity_security"
  ],
  "signature_path": "/epr/github/github-2.10.0.zip.sig",
  "format_version": "3.4.0",
  "readme": "/package/github/2.10.0/docs/README.md",
  "license": "basic",
  "screenshots": [
    {
      "src": "/img/github-audit-dashboard.png",
      "path": "/package/github/2.10.0/img/github-audit-dashboard.png",
      "title": "GitHub audit overview",
      "size": "3000x1788",
      "type": "image/png"
    },
    {
      "src": "/img/github-user-dashboard.png",
      "path": "/package/github/2.10.0/img/github-user-dashboard.png",
      "title": "GitHub user overview",
      "size": "2998x1631",
      "type": "image/png"
    },
    {
      "src": "/img/github-security_advisories-dashboard.png",
      "path": "/package/github/2.10.0/img/github-security_advisories-dashboard.png",
      "title": "GitHub security advisories overview",
      "size": "1594x1088",
      "type": "image/png"
    }
  ],
  "assets": [
    "/package/github/2.10.0/LICENSE.txt",
    "/package/github/2.10.0/changelog.yml",
    "/package/github/2.10.0/manifest.yml",
    "/package/github/2.10.0/validation.yml",
    "/package/github/2.10.0/docs/README.md",
    "/package/github/2.10.0/img/github-audit-dashboard.png",
    "/package/github/2.10.0/img/github-security_advisories-dashboard.png",
    "/package/github/2.10.0/img/github-user-dashboard.png",
    "/package/github/2.10.0/img/github.svg",
    "/package/github/2.10.0/kibana/tags.yml",
    "/package/github/2.10.0/data_stream/audit/manifest.yml",
    "/package/github/2.10.0/data_stream/audit/sample_event.json",
    "/package/github/2.10.0/data_stream/code_scanning/manifest.yml",
    "/package/github/2.10.0/data_stream/code_scanning/sample_event.json",
    "/package/github/2.10.0/data_stream/dependabot/manifest.yml",
    "/package/github/2.10.0/data_stream/dependabot/sample_event.json",
    "/package/github/2.10.0/data_stream/issues/manifest.yml",
    "/package/github/2.10.0/data_stream/issues/sample_event.json",
    "/package/github/2.10.0/data_stream/secret_scanning/manifest.yml",
    "/package/github/2.10.0/data_stream/secret_scanning/sample_event.json",
    "/package/github/2.10.0/data_stream/security_advisories/manifest.yml",
    "/package/github/2.10.0/data_stream/security_advisories/sample_event.json",
    "/package/github/2.10.0/kibana/dashboard/github-4da91aa0-12fc-11ed-af77-016e1a977d80.json",
    "/package/github/2.10.0/kibana/dashboard/github-591d69e0-17b6-11ed-809a-7b4be950fe9c.json",
    "/package/github/2.10.0/kibana/dashboard/github-6197be80-220c-11ed-88c4-e3caca48250a.json",
    "/package/github/2.10.0/kibana/dashboard/github-6a6d7c40-17ab-11ed-809a-7b4be950fe9c.json",
    "/package/github/2.10.0/kibana/dashboard/github-8bfd8310-205c-11ec-8b10-11a4c5e322a0.json",
    "/package/github/2.10.0/kibana/dashboard/github-dcee84c0-2059-11ec-8b10-11a4c5e322a0.json",
    "/package/github/2.10.0/kibana/dashboard/github-e6726e8d-0a94-4917-978a-b5a762b39ee5.json",
    "/package/github/2.10.0/kibana/dashboard/github-f0104680-ae18-11ed-83fa-df5d96a45724.json",
    "/package/github/2.10.0/kibana/search/github-173f1050-20ae-11ec-8b10-11a4c5e322a0.json",
    "/package/github/2.10.0/kibana/search/github-8c37be30-872a-46e9-b530-73f0f2e8f5c0.json",
    "/package/github/2.10.0/kibana/search/github-a5f3d9b0-20af-11ec-8b10-11a4c5e322a0.json",
    "/package/github/2.10.0/kibana/tag/github-security-solution-default.json",
    "/package/github/2.10.0/data_stream/audit/fields/agent.yml",
    "/package/github/2.10.0/data_stream/audit/fields/base-fields.yml",
    "/package/github/2.10.0/data_stream/audit/fields/fields.yml",
    "/package/github/2.10.0/data_stream/code_scanning/fields/agent.yml",
    "/package/github/2.10.0/data_stream/code_scanning/fields/base-fields.yml",
    "/package/github/2.10.0/data_stream/code_scanning/fields/ecs.yml",
    "/package/github/2.10.0/data_stream/code_scanning/fields/fields.yml",
    "/package/github/2.10.0/data_stream/code_scanning/fields/is-transform-source-true.yml",
    "/package/github/2.10.0/data_stream/code_scanning/fields/package-fields.yml",
    "/package/github/2.10.0/data_stream/dependabot/fields/agent.yml",
    "/package/github/2.10.0/data_stream/dependabot/fields/base-fields.yml",
    "/package/github/2.10.0/data_stream/dependabot/fields/ecs.yml",
    "/package/github/2.10.0/data_stream/dependabot/fields/fields.yml",
    "/package/github/2.10.0/data_stream/dependabot/fields/is-transform-source-true.yml",
    "/package/github/2.10.0/data_stream/dependabot/fields/package-fields.yml",
    "/package/github/2.10.0/data_stream/issues/fields/agent.yml",
    "/package/github/2.10.0/data_stream/issues/fields/base-fields.yml",
    "/package/github/2.10.0/data_stream/issues/fields/ecs.yml",
    "/package/github/2.10.0/data_stream/issues/fields/fields.yml",
    "/package/github/2.10.0/data_stream/issues/fields/is-transform-source-true.yml",
    "/package/github/2.10.0/data_stream/issues/fields/package-fields.yml",
    "/package/github/2.10.0/data_stream/secret_scanning/fields/agent.yml",
    "/package/github/2.10.0/data_stream/secret_scanning/fields/base-fields.yml",
    "/package/github/2.10.0/data_stream/secret_scanning/fields/ecs.yml",
    "/package/github/2.10.0/data_stream/secret_scanning/fields/fields.yml",
    "/package/github/2.10.0/data_stream/secret_scanning/fields/is-transform-source-true.yml",
    "/package/github/2.10.0/data_stream/secret_scanning/fields/package-fields.yml",
    "/package/github/2.10.0/data_stream/security_advisories/fields/base-fields.yml",
    "/package/github/2.10.0/data_stream/security_advisories/fields/beats.yml",
    "/package/github/2.10.0/data_stream/security_advisories/fields/fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_code_scanning/manifest.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_code_scanning/transform.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_dependabot/manifest.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_dependabot/transform.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_issues/manifest.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_issues/transform.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_secret_scanning/manifest.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_secret_scanning/transform.yml",
    "/package/github/2.10.0/data_stream/audit/agent/stream/azure-eventhub.yml.hbs",
    "/package/github/2.10.0/data_stream/audit/agent/stream/httpjson.yml.hbs",
    "/package/github/2.10.0/data_stream/audit/elasticsearch/ingest_pipeline/default.yml",
    "/package/github/2.10.0/data_stream/code_scanning/agent/stream/httpjson.yml.hbs",
    "/package/github/2.10.0/data_stream/code_scanning/elasticsearch/ingest_pipeline/default.yml",
    "/package/github/2.10.0/data_stream/dependabot/agent/stream/httpjson.yml.hbs",
    "/package/github/2.10.0/data_stream/dependabot/elasticsearch/ingest_pipeline/default.yml",
    "/package/github/2.10.0/data_stream/issues/agent/stream/httpjson.yml.hbs",
    "/package/github/2.10.0/data_stream/issues/elasticsearch/ingest_pipeline/default.yml",
    "/package/github/2.10.0/data_stream/secret_scanning/agent/stream/httpjson.yml.hbs",
    "/package/github/2.10.0/data_stream/secret_scanning/elasticsearch/ingest_pipeline/default.yml",
    "/package/github/2.10.0/data_stream/security_advisories/agent/stream/cel.yml.hbs",
    "/package/github/2.10.0/data_stream/security_advisories/elasticsearch/ingest_pipeline/default.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_code_scanning/fields/agent.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_code_scanning/fields/base-fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_code_scanning/fields/ecs.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_code_scanning/fields/fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_code_scanning/fields/is-transform-source-false.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_code_scanning/fields/package-fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_dependabot/fields/agent.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_dependabot/fields/base-fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_dependabot/fields/ecs.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_dependabot/fields/fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_dependabot/fields/is-transform-source-false.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_dependabot/fields/package-fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_issues/fields/agent.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_issues/fields/base-fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_issues/fields/ecs.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_issues/fields/fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_issues/fields/is-transform-source-false.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_issues/fields/package-fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_secret_scanning/fields/agent.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_secret_scanning/fields/base-fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_secret_scanning/fields/ecs.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_secret_scanning/fields/fields.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_secret_scanning/fields/is-transform-source-false.yml",
    "/package/github/2.10.0/elasticsearch/transform/latest_secret_scanning/fields/package-fields.yml"
  ],
  "policy_templates": [
    {
      "name": "github",
      "title": "GitHub logs",
      "description": "Collect logs from GitHub",
      "inputs": [
        {
          "type": "httpjson",
          "vars": [
            {
              "name": "enable_request_tracer",
              "type": "bool",
              "title": "Enable request tracing",
              "description": "The request tracer logs requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_request_tracer_filename) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "title": "Collect GitHub logs via API",
          "description": "Collecting logs from GitHub via API"
        },
        {
          "type": "azure-eventhub",
          "title": "Collect GitHub logs from Azure Event Hub",
          "description": "Collect GitHub logs from Azure Event Hub"
        },
        {
          "type": "cel",
          "vars": [
            {
              "name": "proxy_url",
              "type": "text",
              "title": "Proxy URL",
              "description": "URL to proxy connections in the form of http[s]://<user>:<password>@<server name/ip>:<port>. Please ensure your username and password are in URL encoded format.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "ssl",
              "type": "yaml",
              "title": "SSL Configuration",
              "description": "SSL configuration options. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html#ssl-common-config) for details.",
              "multi": false,
              "required": false,
              "show_user": false,
              "default": "#certificate_authorities:\n#  - |\n#    -----BEGIN CERTIFICATE-----\n#    MIIDCjCCAfKgAwIBAgITJ706Mu2wJlKckpIvkWxEHvEyijANBgkqhkiG9w0BAQsF\n#    ADAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwIBcNMTkwNzIyMTkyOTA0WhgPMjExOTA2\n#    MjgxOTI5MDRaMBQxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEB\n#    BQADggEPADCCAQoCggEBANce58Y/JykI58iyOXpxGfw0/gMvF0hUQAcUrSMxEO6n\n#    fZRA49b4OV4SwWmA3395uL2eB2NB8y8qdQ9muXUdPBWE4l9rMZ6gmfu90N5B5uEl\n#    94NcfBfYOKi1fJQ9i7WKhTjlRkMCgBkWPkUokvBZFRt8RtF7zI77BSEorHGQCk9t\n#    /D7BS0GJyfVEhftbWcFEAG3VRcoMhF7kUzYwp+qESoriFRYLeDWv68ZOvG7eoWnP\n#    PsvZStEVEimjvK5NSESEQa9xWyJOmlOKXhkdymtcUd/nXnx6UTCFgnkgzSdTWV41\n#    CI6B6aJ9svCTI2QuoIq2HxX/ix7OvW1huVmcyHVxyUECAwEAAaNTMFEwHQYDVR0O\n#    BBYEFPwN1OceFGm9v6ux8G+DZ3TUDYxqMB8GA1UdIwQYMBaAFPwN1OceFGm9v6ux\n#    8G+DZ3TUDYxqMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAG5D\n#    874A4YI7YUwOVsVAdbWtgp1d0zKcPRR+r2OdSbTAV5/gcS3jgBJ3i1BN34JuDVFw\n#    3DeJSYT3nxy2Y56lLnxDeF8CUTUtVQx3CuGkRg1ouGAHpO/6OqOhwLLorEmxi7tA\n#    H2O8mtT0poX5AnOAhzVy7QW0D/k4WaoLyckM5hUa6RtvgvLxOwA0U+VGurCDoctu\n#    8F4QOgTAWyh8EZIwaKCliFRSynDpv3JTUwtfZkxo6K6nce1RhCWFAsMvDZL8Dgc0\n#    yvgJ38BRsFOtkRuAGSf6ZUwTO8JJRRIFnpUzXflAnGivK9M13D5GEQMmIl6U9Pvk\n#    sxSmbIUfc2SGJGCJD4I=\n#    -----END CERTIFICATE-----\n"
            }
          ],
          "title": "Collect GitHub Security Advisories data via API",
          "description": "Collect GitHub Security Advisories data via API."
        }
      ],
      "multiple": true
    }
  ],
  "data_streams": [
    {
      "type": "logs",
      "dataset": "github.audit",
      "title": "GitHub Audit Logs",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "httpjson",
          "vars": [
            {
              "name": "access_token",
              "type": "password",
              "title": "Personal Access Token",
              "description": "the GitHub Personal Access Token. Requires `read:audit_log` scope",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "organization",
              "type": "text",
              "title": "Organization Name",
              "description": "The GitHub organization name/ID. Either `Organization Name` or `Enterprise Name` must be set.",
              "multi": false,
              "required": false,
              "show_user": true
            },
            {
              "name": "enterprise",
              "type": "text",
              "title": "Enterprise Name",
              "description": "The GitHub enterprise name/ID. Either `Organization Name` or `Enterprise Name` must be set.",
              "multi": false,
              "required": false,
              "show_user": true
            },
            {
              "name": "http_client_timeout",
              "type": "text",
              "title": "HTTP Client Timeout",
              "description": "Duration before declaring that the HTTP client connection has timed out. Valid time units are ns, us, ms, s, m, h.",
              "multi": false,
              "required": false,
              "show_user": true,
              "default": "60s"
            },
            {
              "name": "interval",
              "type": "text",
              "title": "Interval",
              "description": "Interval at which the logs will be pulled. The value must be between 2m and 1h. Supported units for this parameter are h/m/s.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "1h"
            },
            {
              "name": "initial_interval",
              "type": "text",
              "title": "Initial Interval",
              "description": "Initial interval to poll for events. Default is 730 hours (30 days). Supported units for this parameter are h/m/s.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "730h"
            },
            {
              "name": "api_url",
              "type": "text",
              "title": "API URL.",
              "description": "The API URL without the path.",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "https://api.github.com"
            },
            {
              "name": "ssl",
              "type": "yaml",
              "title": "SSL Configuration",
              "description": "SSL configuration options. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html#ssl-common-config) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "proxy_url",
              "type": "text",
              "title": "Proxy URL",
              "description": "URL to proxy connections in the form of http\\[s\\]://<user>:<password>@<server name/ip>:<port>",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "forwarded",
                "github-audit"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. \nThis executes in the agent before the logs are parsed. \nSee [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "httpjson.yml.hbs",
          "title": "GitHub Audit Logs",
          "description": "Collect GitHub audit logs via the API",
          "enabled": false,
          "ingestion_method": "API"
        },
        {
          "input": "azure-eventhub",
          "vars": [
            {
              "name": "eventhub",
              "type": "text",
              "title": "Event Hub",
              "description": "Elastic recommends using one event hub for each integration. Visit [Create an event hub](https://docs.elastic.co/integrations/azure#create-an-event-hub) to learn more. Use event hub names up to 30 characters long to avoid compatibility issues.",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "consumer_group",
              "type": "text",
              "title": "Consumer Group",
              "description": "We recommend using a dedicated consumer group for the azure input. Reusing consumer groups among non-related consumers can cause unexpected behavior and possibly lost events.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "$Default"
            },
            {
              "name": "connection_string",
              "type": "password",
              "title": "Connection String",
              "description": "The connection string required to communicate with Event Hubs. See [Get an Event Hubs connection string](https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string) to learn more.",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "storage_account",
              "type": "text",
              "title": "Storage Account",
              "description": "The name of the storage account where the consumer group's state/offsets will be stored and updated.",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "storage_account_key",
              "type": "password",
              "title": "Storage Account Key",
              "description": "The storage account key, this key will be used to authorize access to data in your storage account.",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "storage_account_container",
              "type": "text",
              "title": "Storage Account Container",
              "description": "The storage account container where the integration stores the checkpoint data for the consumer group. It is an advanced option to use with extreme care. You MUST use a dedicated storage account container for each Azure log type. DO NOT REUSE the same container name for more than one Azure log type. See [Container Names](https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names) for details on naming rules from Microsoft. The integration generates a default container name if not specified.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "resource_manager_endpoint",
              "type": "text",
              "title": "Resource Manager Endpoint",
              "description": "By default we are using the azure public environment, to override, users can provide a specific resource manager endpoint in order to use a different azure environment.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": false,
              "default": [
                "forwarded",
                "github-audit"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "preserve_duplicate_custom_fields",
              "type": "bool",
              "title": "Preserve duplicate custom fields",
              "description": "Preserve github.audit fields that were copied to Elastic Common Schema (ECS) fields.",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "azure-eventhub.yml.hbs",
          "title": "GitHub Audit Logs from Azure Event Hub",
          "description": "Collect GitHub audit logs from Azure Event Hub",
          "enabled": false,
          "ingestion_method": "Azure Event Hub"
        }
      ],
      "package": "github",
      "path": "audit"
    },
    {
      "type": "logs",
      "dataset": "github.code_scanning",
      "title": "GHAS Code Scanning",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "httpjson",
          "vars": [
            {
              "name": "access_token",
              "type": "password",
              "title": "Personal Access Token",
              "description": "the GitHub Personal Access Token.  Requires the 'public_repo' scope for public repositories and 'security_events' scope for private repositories. \\nSee [List code scanning alerts for a repository](https://docs.github.com/en/rest/code-scanning#list-code-scanning-alerts-for-a-repository)",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "owner",
              "type": "text",
              "title": "Repository owner",
              "description": "The owner of GitHub Repository. If repository belongs to an organization, owner is name of the organization",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "repo",
              "type": "text",
              "title": "Repository",
              "description": "The GitHub Repository. If not provided, alerts for all the repositories of the owner will be ingested",
              "multi": false,
              "required": false,
              "show_user": true
            },
            {
              "name": "http_client_timeout",
              "type": "text",
              "title": "HTTP Client Timeout",
              "description": "Duration before declaring that the HTTP client connection has timed out. Valid time units are ns, us, ms, s, m, h.",
              "multi": false,
              "required": false,
              "show_user": true,
              "default": "60s"
            },
            {
              "name": "interval",
              "type": "text",
              "title": "Interval",
              "description": "Interval at which the alerts will be pulled. The value must be between 2m and 1h. Supported units for this parameter are h/m/s.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10m"
            },
            {
              "name": "api_url",
              "type": "text",
              "title": "API URL.",
              "description": "The API URL without the path.",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "https://api.github.com"
            },
            {
              "name": "ssl",
              "type": "yaml",
              "title": "SSL Configuration",
              "description": "SSL configuration options. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html#ssl-common-config) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "proxy_url",
              "type": "text",
              "title": "Proxy URL",
              "description": "URL to proxy connections in the form of http\\[s\\]://<user>:<password>@<server name/ip>:<port>",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "forwarded",
                "github-code-scanning"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. \nThis executes in the agent before the logs are parsed. \nSee [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "httpjson.yml.hbs",
          "title": "GHAS Code Scanning",
          "description": "Collect GitHub Advanced Security Code Scanning alerts via the API",
          "enabled": true,
          "ingestion_method": "API"
        }
      ],
      "package": "github",
      "path": "code_scanning"
    },
    {
      "type": "logs",
      "dataset": "github.dependabot",
      "title": "GHAS Dependabot",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "httpjson",
          "vars": [
            {
              "name": "access_token",
              "type": "password",
              "title": "Personal Access Token",
              "description": "The GitHub Personal Access Token. \\nSee [Authenticating with GraphQL](https://docs.github.com/en/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql)",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "owner",
              "type": "text",
              "title": "Repository owner",
              "description": "The owner of GitHub Repository",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "repo",
              "type": "text",
              "title": "Repository",
              "description": "The GitHub Repository",
              "multi": false,
              "required": false,
              "show_user": true
            },
            {
              "name": "http_client_timeout",
              "type": "text",
              "title": "HTTP Client Timeout",
              "description": "Duration before declaring that the HTTP client connection has timed out. Valid time units are ns, us, ms, s, m, h.",
              "multi": false,
              "required": false,
              "show_user": true,
              "default": "60s"
            },
            {
              "name": "interval",
              "type": "text",
              "title": "Interval",
              "description": "Interval at which the alerts will be pulled. The value must be between 2m and 1h. Supported units for this parameter are h/m/s.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10m"
            },
            {
              "name": "api_url",
              "type": "text",
              "title": "API URL.",
              "description": "The API URL without the path.",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "https://api.github.com"
            },
            {
              "name": "ssl",
              "type": "yaml",
              "title": "SSL Configuration",
              "description": "SSL configuration options. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html#ssl-common-config) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "proxy_url",
              "type": "text",
              "title": "Proxy URL",
              "description": "URL to proxy connections in the form of http[s]://<user>:<password>@<server name/ip>:<port>",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "forwarded",
                "github-dependabot"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata.  This executes in the agent before the logs are parsed.  See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "httpjson.yml.hbs",
          "title": "GHAS Dependabot",
          "description": "Collect GitHub Advanced Security Dependabot alerts via the API",
          "enabled": true,
          "ingestion_method": "API"
        }
      ],
      "package": "github",
      "path": "dependabot"
    },
    {
      "type": "logs",
      "dataset": "github.issues",
      "title": "Github Issue",
      "release": "beta",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "httpjson",
          "vars": [
            {
              "name": "access_token",
              "type": "password",
              "title": "Personal Access Token",
              "description": "the GitHub Personal Access Token.",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "owner",
              "type": "text",
              "title": "Repository owner",
              "description": "The owner of GitHub Repository. If repository belongs to an organization, owner is name of the organization",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "repo",
              "type": "text",
              "title": "Repository",
              "description": "The GitHub Repository. If not provided, alerts for all the repositories of the owner will be ingested",
              "multi": false,
              "required": false,
              "show_user": true
            },
            {
              "name": "state",
              "type": "text",
              "title": "State",
              "description": "Indicates the state of the issues to return.",
              "multi": false,
              "required": false,
              "show_user": true,
              "default": "all"
            },
            {
              "name": "filter",
              "type": "text",
              "title": "Filter",
              "description": "Indicates which sorts of issues to return. \nCan be one of - `assigned`, `created`, `mentioned`, `subscribed`, `repos`, `all`. \n`assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or repos means all issues you can see, regardless of participation or creation.",
              "multi": false,
              "required": false,
              "show_user": true,
              "default": "all"
            },
            {
              "name": "labels",
              "type": "text",
              "title": "Labels",
              "description": "A list of comma separated label names. Example - bug,ui,@high",
              "multi": false,
              "required": false,
              "show_user": true
            },
            {
              "name": "since",
              "type": "text",
              "title": "Since",
              "description": "Only show notifications updated after the given time are returned. This is a timestamp in ISO 8601 format - `YYYY-MM-DDTHH:MM:SSZ`.",
              "multi": false,
              "required": false,
              "show_user": true
            },
            {
              "name": "http_client_timeout",
              "type": "text",
              "title": "HTTP Client Timeout",
              "description": "Duration before declaring that the HTTP client connection has timed out. Valid time units are ns, us, ms, s, m, h.",
              "multi": false,
              "required": false,
              "show_user": true,
              "default": "60s"
            },
            {
              "name": "interval",
              "type": "text",
              "title": "Interval",
              "description": "Interval at which the alerts will be pulled. The value must be between 2m and 1h. Supported units for this parameter are h/m/s.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10m"
            },
            {
              "name": "api_url",
              "type": "text",
              "title": "API URL.",
              "description": "The API URL without the path.",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "https://api.github.com"
            },
            {
              "name": "ssl",
              "type": "yaml",
              "title": "SSL Configuration",
              "description": "SSL configuration options. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html#ssl-common-config) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "proxy_url",
              "type": "text",
              "title": "Proxy URL",
              "description": "URL to proxy connections in the form of http\\[s\\]://<user>:<password>@<server name/ip>:<port>",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "forwarded",
                "github-issues"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. \nThis executes in the agent before the logs are parsed. \nSee [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "httpjson.yml.hbs",
          "title": "Github Issues",
          "description": "Collect GitHub issues as events via the API",
          "enabled": true,
          "ingestion_method": "API"
        }
      ],
      "package": "github",
      "path": "issues"
    },
    {
      "type": "logs",
      "dataset": "github.secret_scanning",
      "title": "GHAS Secret Scanning",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "httpjson",
          "vars": [
            {
              "name": "access_token",
              "type": "password",
              "title": "Personal Access Token",
              "description": "the GitHub Personal Access Token.  Requires `admin` access to the repository or organization owning the repository along with a personal access token with 'public_repo' scope for public repositories and `repo` or `security_events` scope for private repositories. \\nSee [List secret scanning alerts for a repository](https://docs.github.com/en/enterprise-cloud@latest/rest/secret-scanning#list-secret-scanning-alerts-for-a-repository)",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "owner",
              "type": "text",
              "title": "Repository owner",
              "description": "The owner of GitHub Repository",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "repo",
              "type": "text",
              "title": "Repository",
              "description": "The GitHub Repository",
              "multi": false,
              "required": false,
              "show_user": true
            },
            {
              "name": "http_client_timeout",
              "type": "text",
              "title": "HTTP Client Timeout",
              "description": "Duration before declaring that the HTTP client connection has timed out. Valid time units are ns, us, ms, s, m, h.",
              "multi": false,
              "required": false,
              "show_user": true,
              "default": "60s"
            },
            {
              "name": "interval",
              "type": "text",
              "title": "Interval",
              "description": "Interval at which the alerts will be pulled. The value must be between 2m and 1h. Supported units for this parameter are h/m/s.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10m"
            },
            {
              "name": "hide_secret",
              "type": "bool",
              "title": "Hide Secret",
              "description": "To reveal the full secret from the Secret Scanning alert, set this to false",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": true
            },
            {
              "name": "api_url",
              "type": "text",
              "title": "API URL.",
              "description": "The API URL without the path.",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "https://api.github.com"
            },
            {
              "name": "ssl",
              "type": "yaml",
              "title": "SSL Configuration",
              "description": "SSL configuration options. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html#ssl-common-config) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "proxy_url",
              "type": "text",
              "title": "Proxy URL",
              "description": "URL to proxy connections in the form of http\\[s\\]://<user>:<password>@<server name/ip>:<port>",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "forwarded",
                "github-secret-scanning"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. \nThis executes in the agent before the logs are parsed. \nSee [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "httpjson.yml.hbs",
          "title": "GHAS Secret Scanning",
          "description": "Collect GitHub Advanced Security Secret Scanning alerts via the API",
          "enabled": true,
          "ingestion_method": "API"
        }
      ],
      "package": "github",
      "path": "secret_scanning"
    },
    {
      "type": "logs",
      "dataset": "github.security_advisories",
      "title": "Collect GitHub Security Advisories data from GitHub REST API.",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "cel",
          "vars": [
            {
              "name": "api_url",
              "type": "text",
              "title": "API URL",
              "description": "URL for GitHub Security Advisories database REST API",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "https://api.github.com/advisories"
            },
            {
              "name": "api_key",
              "type": "password",
              "title": "API key",
              "description": "API key for GitHub REST API. This Personal Access Token is used to authenticate with the GitHub REST API and should be kept secret.",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "advisory_type",
              "type": "select",
              "title": "Advisory type",
              "multi": false,
              "required": true,
              "show_user": true
            },
            {
              "name": "interval",
              "type": "text",
              "title": "Interval",
              "description": "Duration between requests to the API. Supported units for this parameter are h/m/s.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "24h"
            },
            {
              "name": "batch_size",
              "type": "integer",
              "title": "Batch Size",
              "description": "Batch size for the response of the GitHub REST API. Maximum value is 100.",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": 100
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": false,
              "default": [
                "forwarded",
                "github-security-advisories"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata.  This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "enable_request_tracer",
              "type": "bool",
              "title": "Enable request tracing",
              "description": "The request tracer logs requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-cel.html#_resource_tracer_filename) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false,
              "default": false
            }
          ],
          "template_path": "cel.yml.hbs",
          "title": "GitHub Security Advisories data",
          "description": "Collect GitHub Security Advisories data from GitHub REST API.",
          "enabled": true,
          "ingestion_method": "API"
        }
      ],
      "package": "github",
      "path": "security_advisories"
    }
  ]
}
