GitHub Audit Log 的 CloudWatch 管道配置 - Amazon CloudWatch

GitHub Audit Log 的 CloudWatch 管道配置

注意

重要提示:必须有 GitHub Enterprise 账户才能使用此连接器。不支持 GitHub 个人或组织账户。

使用个人访问令牌或 GitHub 应用程序身份验证,从 GitHub 组织或企业收集审计日志数据。

使用以下参数配置 GitHub Audit Log 来源:

source: github_auditlog: scope: "ORGANIZATION" organization: "<example-org-name>" authentication: personal_access_token: "${{aws_secrets:<secret-name>:token}}"
参数
scope(必需)

要收集的审计日志的范围。必须是“组织”或“企业”。

organization(当范围为“组织”时为必填项)

GitHub 组织名称。

enterprise(当范围为“企业”时为必填项)

GitHub 企业名称。

authentication.personal_access_token(对于 PAT 身份验证为必填项)

用于 GitHub API 身份验证的个人访问令牌。