Restrict @claude mentions to steering-committee team members

Only users who are active members of the @steering-committee team can trigger Claude via @claude mentions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
David Soria Parra 2025-10-07 14:00:27 +01:00
commit 604a3c9b13
No known key found for this signature in database

View file

@ -25,6 +25,22 @@ jobs:
id-token: write
actions: read # Required for Claude to read CI results on PRs
steps:
- name: Check team membership
run: |
# Check if user is member of steering-committee team
TEAM_SLUG="steering-committee"
RESPONSE=$(gh api "orgs/modelcontextprotocol/teams/${TEAM_SLUG}/memberships/${{ github.actor }}" 2>&1)
if echo "$RESPONSE" | grep -q '"state": "active"'; then
echo "✓ User is a member of $TEAM_SLUG team"
exit 0
else
echo "✗ User is not a member of $TEAM_SLUG team or its subteams"
exit 1
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v4
with: