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
5 changes: 3 additions & 2 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
45 changes: 45 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CodeQL

on:
push:
branches: [master]
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# 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:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [csharp, javascript-typescript, python]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET
if: matrix.language == 'csharp'
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
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
11 changes: 7 additions & 4 deletions .github/workflows/test-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ env:
jobs:
test-windows:
name: 'Windows'
# Use self-hosted runners for private repos (avoid GitHub-hosted costs).
# When the repo becomes public, switch to GitHub-hosted runners automatically.
# 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","windows"]' || '["windows-latest"]') }}
timeout-minutes: 20
steps:
Expand Down 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 Expand Up @@ -119,6 +120,8 @@ jobs:

test-macos:
name: 'macOS'
# 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","macos"]' || '["macos-latest"]') }}
timeout-minutes: 20
steps:
Expand Down
Loading