Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuditEntry is missing referrer field #3031

Closed
ngoduykhanh opened this issue Dec 15, 2023 · 0 comments · Fixed by #3032
Closed

AuditEntry is missing referrer field #3031

ngoduykhanh opened this issue Dec 15, 2023 · 0 comments · Fixed by #3032

Comments

@ngoduykhanh
Copy link
Contributor

The AuditEntry structs is missing referrer field which is a useful information to understand more about the changes when it comes into protected_branch action in audit log.

Following is an example entry from Github API response which does have the referrer field.

[
    {
        "@timestamp": 1702649229027,
        "_document_id": "RbYZGywxRSadhVVKTSGP5g",
        "action": "protected_branch.policy_override",
        "actor": "bob",
        "actor_id": 111111,
        "actor_location":
        {
            "country_code": "DE"
        },
        "after": "66480649c9e042c93287ce387611bd1d785a977c",
        "before": "761e880ab6459f8f5a1cd2b4e0e1f1041df74f92",
        "branch": "refs/heads/main",
        "business": "hidden",
        "business_id": 11111,
        "created_at": 1702649229027,
        "external_identity_nameid": "[email protected]",
        "external_identity_username": "[email protected]",
        "operation_type": "modify",
        "org": "hidden",
        "org_id": 111111,
        "overridden_codes":
        [
            "required_status_checks"
        ],
        "public_repo": false,
        "reasons":
        [
            {
                "code": "required_status_checks",
                "message": "3 of 3 required status checks have not succeeded: 2 expected and 1 failing."
            }
        ],
        "referrer": "https://github.com/hidden/test/pull/332",
        "repo": "hidden/test",
        "repo_id": 111111,
        "user_agent": "Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
    }
]
@ngoduykhanh ngoduykhanh changed the title AuditEntry is missing refferer field AuditEntry is missing referrer field Dec 15, 2023
gmlewis pushed a commit that referenced this issue Dec 15, 2023
gmlewis pushed a commit to WillAbides/go-github that referenced this issue Dec 18, 2023
gmlewis pushed a commit to o-sama/go-github that referenced this issue Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant