From e66fbc91c2dc8c497fcdef432a683b4ac013a249 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Mon, 11 May 2026 20:00:27 -0700 Subject: [PATCH] chore(gha): pass commenter login through env in claude.yml (#40042) Co-authored-by: Superset Dev Co-authored-by: Claude Opus 4.7 --- .github/workflows/claude.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index c52e5b9f980..987eac5b73b 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -17,13 +17,12 @@ jobs: steps: - name: Check if user is allowed id: check + env: + COMMENTER: ${{ github.event.comment.user.login }} run: | # List of allowed users ALLOWED_USERS="mistercrunch,rusackas" - # Get the commenter's username - COMMENTER="${{ github.event.comment.user.login }}" - echo "Checking permissions for user: $COMMENTER" # Check if user is in allowed list @@ -45,9 +44,12 @@ jobs: steps: - name: Comment access denied uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + COMMENTER_LOGIN: ${{ github.event.comment.user.login || github.event.review.user.login || github.event.issue.user.login }} with: script: | - const message = `👋 Hi @${{ github.event.comment.user.login || github.event.review.user.login || github.event.issue.user.login }}! + const commenter = process.env.COMMENTER_LOGIN; + const message = `👋 Hi @${commenter}! Thanks for trying to use Claude Code, but currently only certain team members have access to this feature.