From 4ae9980e4cd3fcfa229d712d0f781ef3b14dce8d Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Mon, 15 Jun 2026 16:37:39 -0700 Subject: [PATCH] chore(ci): remove unused Claude PR Assistant workflow (#41081) Co-authored-by: Superset Dev Co-authored-by: Claude Fable 5 --- .github/dependabot.yml | 4 -- .github/workflows/claude.yml | 88 ------------------------------------ 2 files changed, 92 deletions(-) delete mode 100644 .github/workflows/claude.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 458cb5bfd9f..23f5395ca18 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,10 +3,6 @@ enable-beta-ecosystems: true updates: - package-ecosystem: "github-actions" directory: "/" - ignore: - # Ignore temporarily as release schedule is too mentally taxing for dep-handling maintainers - # Additionally, very few PRs are reviewed by this action. - - dependency-name: anthropics/claude-code-action schedule: interval: "daily" cooldown: diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml deleted file mode 100644 index 84f90b72a8b..00000000000 --- a/.github/workflows/claude.yml +++ /dev/null @@ -1,88 +0,0 @@ -name: Claude PR Assistant - -on: - issue_comment: - types: [created] - pull_request_review_comment: - types: [created] - -permissions: - contents: read - -jobs: - check-permissions: - if: | - (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || - (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) - runs-on: ubuntu-latest - outputs: - allowed: ${{ steps.check.outputs.allowed }} - 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" - - echo "Checking permissions for user: $COMMENTER" - - # Check if user is in allowed list - if [[ ",$ALLOWED_USERS," == *",$COMMENTER,"* ]]; then - echo "allowed=true" >> $GITHUB_OUTPUT - echo "✅ User $COMMENTER is allowed to use Claude" - else - echo "allowed=false" >> $GITHUB_OUTPUT - echo "❌ User $COMMENTER is not allowed to use Claude" - fi - - deny-access: - needs: check-permissions - if: needs.check-permissions.outputs.allowed == 'false' - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - 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 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. - - If you believe you should have access, please contact a project maintainer.`; - - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - body: message - }); - - claude-code-action: - needs: check-permissions - if: needs.check-permissions.outputs.allowed == 'true' - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - issues: write - id-token: write - steps: - - name: Checkout repository - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - with: - persist-credentials: false - fetch-depth: 1 - - - name: Run Claude PR Action - uses: anthropics/claude-code-action@5fb899572b81d2bb648d4d187173a2f423a9677c # beta - with: - anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - timeout_minutes: "60"