Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
# github.event.pull_request.user.login == 'new-developer' ||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'

# Prefer GitHub-hosted runners for PR checks to avoid blocking when self-hosted runners are unavailable.
runs-on: ubuntu-latest
# While the repo is private, prefer self-hosted runners to avoid GitHub-hosted spend limits.
# When public, use GitHub-hosted runners by default.
runs-on: ${{ fromJSON(github.event.repository.private && '["self-hosted","ubuntu"]' || '["ubuntu-latest"]') }}
permissions:
contents: read
pull-requests: write
Expand Down Expand Up @@ -53,7 +54,8 @@ jobs:

- name: Run Claude Code Review
id: claude-review
if: steps.changes.outputs.claude_workflows != 'true'
if: steps.changes.outputs.claude_workflows != 'true' && secrets.CLAUDE_CODE_OAUTH_TOKEN != ''
continue-on-error: true
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
Expand Down Expand Up @@ -89,6 +91,10 @@ jobs:
# or https://code.claude.com/docs/en/cli-reference for available options
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'

- name: Skip Claude Code Review (not configured)
if: steps.changes.outputs.claude_workflows != 'true' && secrets.CLAUDE_CODE_OAUTH_TOKEN == ''
run: echo "Skipping Claude Code Review because CLAUDE_CODE_OAUTH_TOKEN is not configured."

- name: Skip Claude Code Review (workflow modified in PR)
if: steps.changes.outputs.claude_workflows == 'true'
run: echo "Skipping Claude Code Review because the Claude workflow file changed in this PR (GitHub app token validation would fail)."
5 changes: 3 additions & 2 deletions .github/workflows/review-intelligencex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ on:
jobs:
# INTELLIGENCEX:BEGIN
review:
# Prefer GitHub-hosted runners for PR checks to avoid blocking when self-hosted runners are unavailable.
runs-on: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest"]' || '["self-hosted","ubuntu"]') }}
# While the repo is private, prefer self-hosted runners to avoid GitHub-hosted spend limits.
# When public, use GitHub-hosted runners by default.
runs-on: ${{ fromJSON(github.event.repository.private && '["self-hosted","ubuntu"]' || '["ubuntu-latest"]') }}
permissions:
contents: read
pull-requests: write
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ jobs:

test-ubuntu:
name: 'Ubuntu'
# Prefer GitHub-hosted runners for PR checks to avoid blocking when self-hosted runners are unavailable.
runs-on: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest"]' || (github.event.repository.private && '["self-hosted","ubuntu"]' || '["ubuntu-latest"]')) }}
# While the repo is private, prefer self-hosted runners to avoid GitHub-hosted spend limits.
# When public, use GitHub-hosted runners by default.
runs-on: ${{ fromJSON(github.event.repository.private && '["self-hosted","ubuntu"]' || '["ubuntu-latest"]') }}
timeout-minutes: 20
steps:
- name: Checkout code
Expand Down
Loading