Skip to content

Instantly share code, notes, and snippets.

@chrisxaustin
Last active November 24, 2024 14:44
Show Gist options
  • Save chrisxaustin/be5aa2b028bffbafe1720c3146f45e03 to your computer and use it in GitHub Desktop.
Save chrisxaustin/be5aa2b028bffbafe1720c3146f45e03 to your computer and use it in GitHub Desktop.
List github clone operations
#!/bin/bash
org=foo
gh api --paginate -H "Accept: application/vnd.github+json" -X GET -F include=git /orgs/$org/audit-log | jq -r '.[] | select(.action=="git.clone" and .actor!="github-actions[bot]" and .actor!="dependabot[bot]") | [.actor, .action, .repo, .programmatic_access_type] | @tsv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment