Query AuditLog with application


How can I query the audit log from a github app?

Does the app has permissions to fetch the audit log or only using OAuth?

For GitHub Enterprise, there is an Audit Log API that can be accessed using GraphQL. You can see the list of ways that you can authenticate to this API in our documentation.

I hope that helps!

Hello, and sorry for bumping yet another old conversation,

When accessing the audit log using the personal access token, an admin:org scope is required. Giving either read or read-write administration permission to a github app keeps returning the error " does not have permission to retrieve auditLog information."

1 Like