Skip to content

Conversation

@KittyChiu
Copy link
Contributor

@KittyChiu KittyChiu commented Aug 13, 2025

New scripts for role and membership checks

  • Added check-enterprise-owner.sh to verify if a user is an enterprise admin using the GitHub GraphQL API, including pagination support and detailed error handling.
  • Added check-enterprise-team-membership.sh to check if a user is a member of an enterprise team (private preview feature) using the REST API, with HTTP status code handling.
  • Added check-org-team-membership.sh to check if a user is a member of a specific team in an organization via the REST API, requiring the read:org scope.
  • Added check-repository-admin.sh to determine if a user is a collaborator in a repository and whether they have admin access, with permission level checks.

Copy link
Owner

@joshjohanning joshjohanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ✨ 🎉 Only major thing I changed was check-org-team-membership to check-organization-team-membership to satisfy the linting.

@joshjohanning joshjohanning merged commit 7e2f0b5 into joshjohanning:main Aug 13, 2025
2 checks passed
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 this pull request may close these issues.

2 participants