Script to fetch a GitHub organisation member list and gpg --import
the public GPG key(s) for each member with GPG key(s) associated against their profile.
Requires curl
for GitHub API calls, jq
for parsing GitHub REST API responses and (obviously) gpg
.
Create a GitHub personal access token (classic or fine-grained) with read access to organisation members: