Is it possible to get audit log in github.com via API?

I did not find anything in the API documents, only the corporate version mentions that you can extract audit logs using personal tools.

Any idea? I would like to periodically check the audit log and send new entries to our IM channel (ChatOps).

Thanks in advance,

+6
source share
2 answers

As VonC notes, the API is missing (as of October 2017).

Unfortunately, the Export feature in GitHub audit logs generates JSON or CSV audit events, but the data does not contain useful information with details.

For example, export shows that issue_comment.update been run, but the web interface provides a link to the comment itself. The export shows that one user has executed org.update_member for another user, but the web interface will show what role change was made for that user.

To get information about each event at the moment (October 2017), the only way is through the web interface.

Here is a ruby tool that resets the web interface, retrieves audit log entries with detailed information.

+1
source

Not yet possible through the GitHub API.

But at least it can be exported ( from May 5, 2015 ) in JSON or CSV format.

https://cloud.githubusercontent.com/assets/79995/7376703/66f8b8d2-ed96-11e4-9258-9caacdb60b7c.png

See " Export audit log .

0
source

Source: https://habr.com/ru/post/982666/


All Articles