Skip to content

Commit

Permalink
Update analyze.yml to accept executor as input. (#2116)
Browse files Browse the repository at this point in the history
### Description

Updates the CodeQL Workflow to accept the executor as input, allowing provision for self-hosted runners when re-using the workflow.
  • Loading branch information
billyjbryant authored Feb 9, 2024
1 parent 54ad83e commit 5e8503c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@ on:
destination:
type: string
default: generic/platform=iOS Simulator
executor:
type: string
default: '["ubuntu-latest"]'
secrets:
SDK_REGISTRY_TOKEN:
required: true

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand All @@ -27,7 +34,7 @@ jobs:
fail-fast: false
matrix:
language: ["javascript", "python", "ruby"]
executor: ["ubuntu-latest"]
executor: ${{ fromJson(inputs.executor) }}
include:
- language: "swift"
executor: "macos-latest"
Expand Down

0 comments on commit 5e8503c

Please sign in to comment.