Skip to content

Commit 604a3c9

Browse files
dsp-antclaude
andcommitted
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>
1 parent a9e5cf7 commit 604a3c9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/claude.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ jobs:
2525
id-token: write
2626
actions: read # Required for Claude to read CI results on PRs
2727
steps:
28+
- name: Check team membership
29+
run: |
30+
# Check if user is member of steering-committee team
31+
TEAM_SLUG="steering-committee"
32+
RESPONSE=$(gh api "orgs/modelcontextprotocol/teams/${TEAM_SLUG}/memberships/${{ github.actor }}" 2>&1)
33+
34+
if echo "$RESPONSE" | grep -q '"state": "active"'; then
35+
echo "✓ User is a member of $TEAM_SLUG team"
36+
exit 0
37+
else
38+
echo "✗ User is not a member of $TEAM_SLUG team or its subteams"
39+
exit 1
40+
fi
41+
env:
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
2844
- name: Checkout repository
2945
uses: actions/checkout@v4
3046
with:

0 commit comments

Comments
 (0)