セキュリティログにアクセスする
The security log lists all actions performed within the last 90 days.
-
任意のページの右上で、プロフィール画像をクリックし、続いてSettings(設定)をクリックしてください。
-
In the "Archives" section of the sidebar, click Security log.
セキュリティログを検索する
The name for each audit log entry is composed of the action
object or category qualifier, followed by an operation type. For example, the repo.create
entry refers to the create
operation on the repo
category.
各 Audit log エントリには、次のようなイベントに関する適切な情報が表示されます:
- The enterprise or organization an action was performed in
- The user (actor) who performed the action
- The user affected by the action
- アクションの対象となったリポジトリ
- 実行されたアクション
- アクションが実行された国
- アクションが発生した日時
- Optionally, the source IP address for the user (actor) who performed the action
テキストを使用してエントリを検索することはできません。 ただし、さまざまなフィルターを使用すれば検索クエリを作成できます。 ログを検索するときに使用される多くの演算子 (-
、>
、<
など) は、GitHub Enterprise Cloud 全体で検索するものと同じ形式です。 詳細は「GitHub での検索」を参照してください。
操作に基づく検索
operation
修飾子は、アクションを特定の操作の種類に限定するときに使ってください。 例:
operation:access
は、リソースがアクセスされたすべてのイベントを見つけます。operation:authentication
は認証イベントが生じたすべてのイベントを見つけます。operation:create
は、リソースが作成されたすべてのイベントを見つけます。operation:modify
は、リソースが修正されたすべてのイベントを見つけます。operation:remove
は、既存のリソースが削除されたすべてのイベントを見つけます。operation:restore
は、既存のリソースがリストアされたすべてのイベントを見つけます。operation:transfer
は既存のリソースが移譲されたすべてのイベントを見つけます。
リポジトリに基づく検索
repo
修飾子は、アクションを特定のリポジトリに限定するときに使ってください。 例:
repo:my-org/our-repo
はmy-org
Organization内のour-repo
リポジトリで起きたすべてのイベントを検索します。repo:my-org/our-repo repo:my-org/another-repo
は、my-org
Organization内のour-repo
及びanother-repo
の両リポジトリ内で起きたすべてのイベントを検索します。-repo:my-org/not-this-repo
は、my-org
Organization内のnot-this-repo
リポジトリで起きたすべてのイベントを除外します。
repo
修飾子内にアカウント名を加える必要があることに注意してください。 repo:our-repo
だけを検索しても機能しません。
ユーザーに基づく検索
actor
修飾子は、アクションを実行した人に基づいてイベントの範囲を指定できます。 例:
actor:octocat
はoctocat
が行ったすべてのイベントを検索します。actor:octocat actor:hubot
は、octocat
及びhubot
が行ったすべてのイベントを検索します。-actor:hubot
は、hubot
が行ったすべてのイベントを除外します。
使用できるのは GitHub Enterprise Cloud のユーザー名のみであり、個人の実名ではないことに注意してください。
実行されたアクションに基づく検索
セキュリティログにリストされているイベントは、アクションによってトリガーされます。 アクションは次のカテゴリに分類されます。
カテゴリ名 | 説明 |
---|---|
支払い | 自分の支払い情報に関連するすべての活動が対象です。 |
codespaces | Codespaces に関連するすべての活動が対象です。 詳しい情報については、「Codespaces について」を参照してください。 |
marketplace_agreement_signature | GitHub Marketplace Developer Agreement の署名に関連するすべての活動が対象です。 |
marketplace_listing | GitHub Marketplace に一覧表示しているアプリに関連するすべての活動が対象です。 |
oauth_access | Contains all activities related to OAuth App you've connected with. |
payment_method | GitHub プランに対する支払いに関連するすべての活動が対象です。 |
profile_picture | 自分のプロファイル写真に関連するすべての活動が対象です。 |
project | プロジェクト ボードに関連するすべての活動が対象です。 |
public_key | 公開 SSH キーに関連するすべての活動が対象です。 |
repo | Contains all activities related to the repositories you own. |
sponsors | GitHub Sponsors およびスポンサーボタンに関連するすべてのイベントが対象です (「GitHub Sponsors について」と「リポジトリにスポンサーボタンを表示する」を参照) |
two_factor_authentication | 2 要素認証に関連するすべてのアクティビティが対象です。 |
ユーザ | アカウントに関連するすべての活動が対象です。 |
セキュリティログをエクスポートする
ログは、JSONデータあるいはカンマ区切り(CSV)のファイルとしてエクスポートできます。
エクスポート中で結果をフィルタリングするには、Export(エクスポート)ドロップダウンメニューを使う前に以下のサポートされている1つ以上の修飾子で検索してください。
修飾子 | 値の例 |
---|---|
action | team.create |
actor | octocat |
ユーザ | codertocat |
org | octo-org |
repo | octo-org/documentation |
created | 2019-06-01 |
After you export the log, you'll see the following keys and values in the resulting file.
キー | 値の例 |
---|---|
action | team.create |
actor | octocat |
ユーザ | codertocat |
actor_location.country_code | US |
org | octo-org |
repo | octo-org/documentation |
created_at | 1429548104000 (タイムスタンプは Epoch からの経過時間をミリ秒で示します。) |
data.email | octocat@nowhere.com |
data.hook_id | 245 |
data.events | ["issues", "issue_comment", "pull_request", "pull_request_review_comment"] |
data.events_were | ["push", "pull_request", "issues"] |
data.target_login | octocat |
data.old_user | hubot |
data.team | octo-org/engineering |
セキュリティログのアクション
セキュリティログにイベントとして記録される最も一般的なアクションの概要です。
billing
カテゴリアクション
アクション | 説明 |
---|---|
change_billing_type | GitHub の支払い方法を変更するときにトリガーされます。 |
change_email | 自分のメール アドレスを変更するときにトリガーされます。 |
codespaces
カテゴリアクション
アクション | 説明 |
---|---|
create | コードスペースを作成するとトリガーされます。 |
resume | 中断されたコードスペースを再開するとトリガーされます。 |
delete | コードスペースを削除するとトリガーされます。 |
manage_access_and_security | コードスペースがアクセスできるリポジトリを更新するとトリガーされます。 |
trusted_repositories_access_update | Triggered when you change your personal account's access and security setting for Codespaces. |
marketplace_agreement_signature
カテゴリアクション
アクション | 説明 |
---|---|
create | GitHub Marketplace Developer Agreement に署名するときにトリガーされます。 |
marketplace_listing
カテゴリアクション
アクション | 説明 |
---|---|
承認 | 一覧表を GitHub Marketplaceに掲載することが承認されるときにトリガーされます。 |
create | GitHub Marketplace で自分のアプリケーションの一覧表を作成するときにトリガーされます。 |
delist | 一覧表が GitHub Marketplace から削除されるときにトリガーされます。 |
redraft | 一覧表がドラフト状態に戻されるときにトリガーされます。 |
reject | 一覧表が GitHub Marketplace に掲載することを認められないときにトリガーされます。 |
oauth_authorization
category actions
アクション | 説明 |
---|---|
create | Triggered when you grant access to an OAuth App. |
destroy | Triggered when you revoke an OAuth App's access to your account and when authorizations are revoked or expire. |
payment_method
カテゴリアクション
アクション | 説明 |
---|---|
create | 新しいクレジット カードや PayPal アカウントなど、新たな支払い方法が追加されるときにトリガーされます。 |
update | 既存の支払い方法が更新されるときにトリガーされます。 |
profile_picture
カテゴリアクション
アクション | 説明 |
---|---|
update | 自分のプロフィール写真を設定または更新するときにトリガーされます。 |
project
カテゴリアクション
アクション | 説明 |
---|---|
access | プロジェクト ボードの可視性が変更されるときにトリガーされます。 |
create | プロジェクト ボードが作成されるときにトリガーされます。 |
rename | プロジェクトボードの名前が変更されるときにトリガーされます。 |
update | プロジェクト ボードが更新されるときにトリガーされます。 |
delete | プロジェクトボードが削除されるときにトリガーされます。 |
link | リポジトリがプロジェクト ボードにリンクされるときにトリガーされます。 |
unlink | リポジトリがプロジェクトボードからリンク解除されるときにトリガーされます。 |
update_user_permission | 外部のコラボレータがプロジェクトボードに追加またはプロジェクトボードから削除されたとき、あるいは許可レベルが変更されたときにトリガーされます。 |
public_key
カテゴリアクション
アクション | 説明 |
---|---|
create | Triggered when you add a new public SSH key to your account on GitHub.com. |
delete | Triggered when you remove a public SSH key to your account on GitHub.com. |
repo
カテゴリアクション
アクション | 説明 |
---|---|
access | 自分が所有するリポジトリが"プライベート" から "パブリック" に切り替えられる (またはその逆) ときにトリガーされます。 |
add_member | Triggered when a GitHub Enterprise Cloud user is invited to have collaboration access to a repository. |
add_topic | リポジトリのオーナーがリポジトリにトピックを追加するときにトリガーされます。 |
archived | リポジトリのオーナーがリポジトリをアーカイブするときにトリガーされます。 |
create | 新たなリポジトリが作成されるときにトリガーされます。 |
destroy | リポジトリが削除されるときにトリガーされます。 |
disable | Triggered when a repository is disabled (e.g., for insufficient funds). |
download_zip | Triggered when a ZIP or TAR archive of a repository is downloaded. |
enable | リポジトリが再び有効になるときにトリガーされます。 |
remove_member | GitHub Enterprise Cloudユーザがリポジトリのコラボレーターではなくなるときにトリガーされます。 |
remove_topic | リポジトリのオーナーがリポジトリからトピックを削除するときにトリガーされます。 |
rename | リポジトリの名前が変更されるときにトリガーされます。 |
移譲 | リポジトリが移譲されるときにトリガーされます。 |
transfer_start | リポジトリの移譲が行われようとしているときにトリガーされます。 |
unarchived | リポジトリのオーナーがリポジトリをアーカイブ解除するときにトリガーされます。 |
sponsors
カテゴリアクション
アクション | 説明 |
---|---|
custom_amount_settings_change | カスタム金額を有効または無効にするとき、または提案されたカスタム金額を変更するときにトリガーされます (「スポンサーシップ層を管理する」を参照)。 |
repo_funding_links_file_action | リポジトリで FUNDING ファイルを変更したときにトリガーされます (「リポジトリにスポンサーボタンを表示する」を参照) |
sponsor_sponsorship_cancel | スポンサーシップをキャンセルしたときにトリガーされます (「スポンサーシップをダウングレードする」を参照) |
sponsor_sponsorship_create | アカウントをスポンサーするとトリガーされます (「オープンソースコントリビューターに対するスポンサー」を参照) |
sponsor_sponsorship_payment_complete | アカウントをスポンサーし、支払が処理されるとトリガーされます (「オープンソースコントリビューターに対するスポンサー」を参照) |
sponsor_sponsorship_preference_change | スポンサード開発者からメールで最新情報を受け取るかどうかを変更するとトリガーされます (「スポンサーシップを管理する」を参照) |
sponsor_sponsorship_tier_change | スポンサーシップをアップグレードまたはダウングレードしたときにトリガーされます (「スポンサーシップをアップグレードする」および「スポンサーシップをダウングレードする」を参照) |
sponsored_developer_approve | Triggered when your GitHub Sponsors account is approved (see "Setting up GitHub Sponsors for your personal account") |
sponsored_developer_create | Triggered when your GitHub Sponsors account is created (see "Setting up GitHub Sponsors for your personal account") |
sponsored_developer_disable | GitHub Sponsors アカウントが無効になるとトリガーされます |
sponsored_developer_redraft | GitHub Sponsors アカウントが承認済みの状態からドラフト状態に戻るとトリガーされます |
sponsored_developer_profile_update | スポンサード開発者のプロフィールを編集するとトリガーされます (「GitHub Sponsors のプロフィール詳細を編集する」を参照) |
sponsored_developer_request_approval | Triggered when you submit your application for GitHub Sponsors for approval (see "Setting up GitHub Sponsors for your personal account") |
sponsored_developer_tier_description_update | スポンサーシップ層の説明を変更したときにトリガーされます (「スポンサーシップ層を管理する」を参照) |
sponsored_developer_update_newsletter_send | スポンサーにメールで最新情報を送信するとトリガーされます (「スポンサーに連絡する」を参照) |
waitlist_invite_sponsored_developer | Triggered when you are invited to join GitHub Sponsors from the waitlist (see "Setting up GitHub Sponsors for your personal account") |
waitlist_join | Triggered when you join the waitlist to become a sponsored developer (see "Setting up GitHub Sponsors for your personal account") |
successor_invitation
カテゴリアクション
アクション | 説明 |
---|---|
accept | Triggered when you accept a succession invitation (see "Maintaining ownership continuity of your personal account's repositories") |
cancel | Triggered when you cancel a succession invitation (see "Maintaining ownership continuity of your personal account's repositories") |
create | Triggered when you create a succession invitation (see "Maintaining ownership continuity of your personal account's repositories") |
decline | Triggered when you decline a succession invitation (see "Maintaining ownership continuity of your personal account's repositories") |
revoke | Triggered when you revoke a succession invitation (see "Maintaining ownership continuity of your personal account's repositories") |
two_factor_authentication
カテゴリアクション
アクション | 説明 |
---|---|
enabled | 2 要素認証が有効になるときにトリガーされます。 |
disabled | 2 要素認証が無効になるときにトリガーされます。 |
user
カテゴリアクション
アクション | 説明 |
---|---|
add_email | トリガーされる条件 |
add a new email address. | |
codespaces_trusted_repo_access_granted | Triggered when you allow the codespaces you create for a repository to access other repositories owned by your personal account. |
codespaces_trusted_repo_access_revoked | Triggered when you disallow the codespaces you create for a repository to access other repositories owned by your personal account. |
create | Triggered when you create a new personal account. |
change_password | 自分のパスワードを変更するときにトリガーされます。 |
forgot_password | パスワード のリセットを要求したときにトリガーされます。 |
hide_private_contributions_count | 自分のプロファイルでプライベート コントリビューションを非表示にするときにトリガーされます。 |
login | Triggered when you log in to GitHub.com. |
user_status
カテゴリアクション
アクション | 説明 |
---|---|
update | 自分のプロファイルでステータスを設定または変更するときにトリガーされます。 詳細は「ステータスを設定する」を参照してください。 |
destroy | 自分のプロファイルでステータスを消去するときにトリガーされます。 |