Compare commits

..

10 Commits

Author SHA1 Message Date
Henry Mercer
228f988153 Remove push trigger from manual checks
To avoid issues with concurrency groups
2025-11-13 20:53:54 +00:00
Michael B. Gale
8c10e89c78 Merge pull request #3288 from github/update-bundle/codeql-bundle-v2.23.5
Update default bundle to 2.23.5
2025-11-13 20:50:51 +00:00
Michael B. Gale
9777b01a49 Merge branch 'main' into update-bundle/codeql-bundle-v2.23.5 2025-11-13 20:11:59 +00:00
Henry Mercer
456a74a6fa Merge pull request #3289 from github/mbg/ci/setup-dotnet
Add support for adding `setup-dotnet` steps to `sync.sh`
2025-11-13 20:11:33 +00:00
Michael B. Gale
3fac49c140 Update remaining workflows 2025-11-13 19:53:24 +00:00
Michael B. Gale
38a3a7258f Enable installDotNet in all workflows that analyse C# 2025-11-13 19:48:37 +00:00
Michael B. Gale
58c9eb6c03 Add global.json 2025-11-13 19:48:37 +00:00
Michael B. Gale
f20e02164a Add support for adding setup-dotnet steps to sync.sh 2025-11-13 18:58:54 +00:00
github-actions[bot]
8d3d4001e3 Add changelog note 2025-11-13 18:40:00 +00:00
github-actions[bot]
362f8d1d2d Update default bundle to codeql-bundle-v2.23.5 2025-11-13 18:39:52 +00:00
54 changed files with 349 additions and 34 deletions

View File

@@ -27,6 +27,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -34,6 +39,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -74,6 +84,10 @@ jobs:
with: with:
go-version: ${{ inputs.go-version || '>=1.21.0' }} go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false cache: false
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- id: init - id: init
uses: ./../action/init uses: ./../action/init
with: with:

View File

@@ -32,6 +32,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -44,6 +49,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -85,6 +95,10 @@ jobs:
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
python-version: ${{ inputs.python-version || '3.13' }} python-version: ${{ inputs.python-version || '3.13' }}
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
tools: ${{ steps.prepare-test.outputs.tools-url }} tools: ${{ steps.prepare-test.outputs.tools-url }}

View File

@@ -21,9 +21,19 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: {} inputs:
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -59,6 +69,10 @@ jobs:
version: ${{ matrix.version }} version: ${{ matrix.version }}
use-all-platform-bundle: 'false' use-all-platform-bundle: 'false'
setup-kotlin: 'true' setup-kotlin: 'true'
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
languages: csharp languages: csharp

View File

@@ -27,6 +27,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -34,6 +39,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -70,6 +80,10 @@ jobs:
with: with:
go-version: ${{ inputs.go-version || '>=1.21.0' }} go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false cache: false
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
id: init id: init
with: with:

View File

@@ -27,6 +27,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -34,6 +39,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -74,6 +84,10 @@ jobs:
with: with:
go-version: ${{ inputs.go-version || '>=1.21.0' }} go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false cache: false
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
id: init id: init
with: with:

View File

@@ -27,6 +27,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -34,6 +39,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -72,6 +82,10 @@ jobs:
with: with:
go-version: ${{ inputs.go-version || '>=1.21.0' }} go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false cache: false
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
languages: go languages: go

9
.github/workflows/__go.yml generated vendored
View File

@@ -8,9 +8,6 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GO111MODULE: auto GO111MODULE: auto
on: on:
push:
paths:
- .github/workflows/__go.yml
workflow_dispatch: workflow_dispatch:
inputs: inputs:
go-version: go-version:
@@ -18,6 +15,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
jobs: jobs:
go-custom-queries: go-custom-queries:
name: 'Go: Custom queries' name: 'Go: Custom queries'
@@ -27,6 +29,7 @@ jobs:
uses: ./.github/workflows/__go-custom-queries.yml uses: ./.github/workflows/__go-custom-queries.yml
with: with:
go-version: ${{ inputs.go-version }} go-version: ${{ inputs.go-version }}
dotnet-version: ${{ inputs.dotnet-version }}
go-indirect-tracing-workaround-diagnostic: go-indirect-tracing-workaround-diagnostic:
name: 'Go: diagnostic when Go is changed after init step' name: 'Go: diagnostic when Go is changed after init step'
permissions: permissions:

14
.github/workflows/__local-bundle.yml generated vendored
View File

@@ -32,6 +32,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -44,6 +49,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -85,6 +95,10 @@ jobs:
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
python-version: ${{ inputs.python-version || '3.13' }} python-version: ${{ inputs.python-version || '3.13' }}
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Fetch latest CodeQL bundle - name: Fetch latest CodeQL bundle
run: | run: |
wget https://github.com/github/codeql-action/releases/latest/download/codeql-bundle-linux64.tar.zst wget https://github.com/github/codeql-action/releases/latest/download/codeql-bundle-linux64.tar.zst

View File

@@ -32,6 +32,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -44,6 +49,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -119,6 +129,10 @@ jobs:
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
python-version: ${{ inputs.python-version || '3.13' }} python-version: ${{ inputs.python-version || '3.13' }}
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Use Xcode 16 - name: Use Xcode 16
if: runner.os == 'macOS' && matrix.version != 'nightly-latest' if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
run: sudo xcode-select -s "/Applications/Xcode_16.app" run: sudo xcode-select -s "/Applications/Xcode_16.app"

View File

@@ -32,6 +32,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -44,6 +49,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -96,6 +106,10 @@ jobs:
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
python-version: ${{ inputs.python-version || '3.13' }} python-version: ${{ inputs.python-version || '3.13' }}
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
config-file: .github/codeql/codeql-config-packaging3.yml config-file: .github/codeql/codeql-config-packaging3.yml

View File

@@ -27,6 +27,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -34,6 +39,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -81,6 +91,10 @@ jobs:
with: with:
go-version: ${{ inputs.go-version || '>=1.21.0' }} go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false cache: false
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
config-file: .github/codeql/codeql-config-packaging3.yml config-file: .github/codeql/codeql-config-packaging3.yml

View File

@@ -27,6 +27,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -34,6 +39,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -81,6 +91,10 @@ jobs:
with: with:
go-version: ${{ inputs.go-version || '>=1.21.0' }} go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false cache: false
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
config-file: .github/codeql/codeql-config-packaging.yml config-file: .github/codeql/codeql-config-packaging.yml

View File

@@ -27,6 +27,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -34,6 +39,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -81,6 +91,10 @@ jobs:
with: with:
go-version: ${{ inputs.go-version || '>=1.21.0' }} go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false cache: false
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
config-file: .github/codeql/codeql-config-packaging2.yml config-file: .github/codeql/codeql-config-packaging2.yml

View File

@@ -32,6 +32,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -44,6 +49,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -87,6 +97,10 @@ jobs:
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
python-version: ${{ inputs.python-version || '3.13' }} python-version: ${{ inputs.python-version || '3.13' }}
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
tools: ${{ steps.prepare-test.outputs.tools-url }} tools: ${{ steps.prepare-test.outputs.tools-url }}

View File

@@ -27,6 +27,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -34,6 +39,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -80,6 +90,10 @@ jobs:
with: with:
go-version: ${{ inputs.go-version || '>=1.21.0' }} go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false cache: false
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
config-file: .github/codeql/codeql-config-packaging3.yml config-file: .github/codeql/codeql-config-packaging3.yml

View File

@@ -27,6 +27,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -34,6 +39,11 @@ on:
description: The version of Go to install description: The version of Go to install
required: false required: false
default: '>=1.21.0' default: '>=1.21.0'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -74,6 +84,10 @@ jobs:
with: with:
go-version: ${{ inputs.go-version || '>=1.21.0' }} go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false cache: false
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Use Xcode 16 - name: Use Xcode 16
if: runner.os == 'macOS' && matrix.version != 'nightly-latest' if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
run: sudo xcode-select -s "/Applications/Xcode_16.app" run: sudo xcode-select -s "/Applications/Xcode_16.app"

View File

@@ -32,6 +32,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -44,6 +49,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -87,6 +97,10 @@ jobs:
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
python-version: ${{ inputs.python-version || '3.13' }} python-version: ${{ inputs.python-version || '3.13' }}
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
id: init id: init
with: with:

View File

@@ -32,6 +32,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -44,6 +49,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -85,6 +95,10 @@ jobs:
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
python-version: ${{ inputs.python-version || '3.13' }} python-version: ${{ inputs.python-version || '3.13' }}
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
tools: ${{ steps.prepare-test.outputs.tools-url }} tools: ${{ steps.prepare-test.outputs.tools-url }}

14
.github/workflows/__upload-sarif.yml generated vendored
View File

@@ -32,6 +32,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -44,6 +49,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -92,6 +102,10 @@ jobs:
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
python-version: ${{ inputs.python-version || '3.13' }} python-version: ${{ inputs.python-version || '3.13' }}
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- uses: ./../action/init - uses: ./../action/init
with: with:
tools: ${{ steps.prepare-test.outputs.tools-url }} tools: ${{ steps.prepare-test.outputs.tools-url }}

View File

@@ -32,6 +32,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -44,6 +49,11 @@ on:
description: The version of Python to install description: The version of Python to install
required: false required: false
default: '3.13' default: '3.13'
dotnet-version:
type: string
description: The version of .NET to install
required: false
default: 9.x
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -85,6 +95,10 @@ jobs:
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
python-version: ${{ inputs.python-version || '3.13' }} python-version: ${{ inputs.python-version || '3.13' }}
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Delete original checkout - name: Delete original checkout
run: | run: |
# delete the original checkout so we don't accidentally use it. # delete the original checkout so we don't accidentally use it.

View File

@@ -54,6 +54,10 @@ jobs:
- uses: actions/setup-go@v6 - uses: actions/setup-go@v6
with: with:
go-version: ^1.13.1 go-version: ^1.13.1
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.x'
- uses: ./../action/init - uses: ./../action/init
with: with:
tools: ${{ steps.prepare-test.outputs.tools-url }} tools: ${{ steps.prepare-test.outputs.tools-url }}

View File

@@ -50,6 +50,10 @@ jobs:
- uses: actions/setup-go@v6 - uses: actions/setup-go@v6
with: with:
go-version: ^1.13.1 go-version: ^1.13.1
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.x'
- uses: ./../action/init - uses: ./../action/init
id: init id: init
with: with:

View File

@@ -43,6 +43,10 @@ jobs:
with: with:
version: ${{ matrix.version }} version: ${{ matrix.version }}
use-all-platform-bundle: true use-all-platform-bundle: true
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.x'
- id: init - id: init
uses: ./../action/init uses: ./../action/init
with: with:

View File

@@ -5,6 +5,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
## [UNRELEASED] ## [UNRELEASED]
- CodeQL Action v3 will be deprecated in December 2026. The Action now logs a warning for customers who are running v3 but could be running v4. For more information, see [Upcoming deprecation of CodeQL Action v3](https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/). - CodeQL Action v3 will be deprecated in December 2026. The Action now logs a warning for customers who are running v3 but could be running v4. For more information, see [Upcoming deprecation of CodeQL Action v3](https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/).
- Update default CodeQL bundle version to 2.23.5. [#3288](https://github.com/github/codeql-action/pull/3288)
## 4.31.2 - 30 Oct 2025 ## 4.31.2 - 30 Oct 2025

4
lib/analyze-action.js generated
View File

@@ -88210,8 +88210,8 @@ var path4 = __toESM(require("path"));
var semver4 = __toESM(require_semver2()); var semver4 = __toESM(require_semver2());
// src/defaults.json // src/defaults.json
var bundleVersion = "codeql-bundle-v2.23.3"; var bundleVersion = "codeql-bundle-v2.23.5";
var cliVersion = "2.23.3"; var cliVersion = "2.23.5";
// src/overlay-database-utils.ts // src/overlay-database-utils.ts
var fs3 = __toESM(require("fs")); var fs3 = __toESM(require("fs"));

View File

@@ -83700,8 +83700,8 @@ var path3 = __toESM(require("path"));
var semver4 = __toESM(require_semver2()); var semver4 = __toESM(require_semver2());
// src/defaults.json // src/defaults.json
var bundleVersion = "codeql-bundle-v2.23.3"; var bundleVersion = "codeql-bundle-v2.23.5";
var cliVersion = "2.23.3"; var cliVersion = "2.23.5";
// src/overlay-database-utils.ts // src/overlay-database-utils.ts
var fs2 = __toESM(require("fs")); var fs2 = __toESM(require("fs"));

View File

@@ -1,6 +1,6 @@
{ {
"bundleVersion": "codeql-bundle-v2.23.3", "bundleVersion": "codeql-bundle-v2.23.5",
"cliVersion": "2.23.3", "cliVersion": "2.23.5",
"priorBundleVersion": "codeql-bundle-v2.23.2", "priorBundleVersion": "codeql-bundle-v2.23.3",
"priorCliVersion": "2.23.2" "priorCliVersion": "2.23.3"
} }

View File

@@ -122974,8 +122974,8 @@ var path4 = __toESM(require("path"));
var semver4 = __toESM(require_semver2()); var semver4 = __toESM(require_semver2());
// src/defaults.json // src/defaults.json
var bundleVersion = "codeql-bundle-v2.23.3"; var bundleVersion = "codeql-bundle-v2.23.5";
var cliVersion = "2.23.3"; var cliVersion = "2.23.5";
// src/overlay-database-utils.ts // src/overlay-database-utils.ts
var fs3 = __toESM(require("fs")); var fs3 = __toESM(require("fs"));

4
lib/init-action.js generated
View File

@@ -85634,8 +85634,8 @@ var path5 = __toESM(require("path"));
var semver4 = __toESM(require_semver2()); var semver4 = __toESM(require_semver2());
// src/defaults.json // src/defaults.json
var bundleVersion = "codeql-bundle-v2.23.3"; var bundleVersion = "codeql-bundle-v2.23.5";
var cliVersion = "2.23.3"; var cliVersion = "2.23.5";
// src/overlay-database-utils.ts // src/overlay-database-utils.ts
var fs3 = __toESM(require("fs")); var fs3 = __toESM(require("fs"));

View File

@@ -83588,8 +83588,8 @@ var path4 = __toESM(require("path"));
var semver3 = __toESM(require_semver2()); var semver3 = __toESM(require_semver2());
// src/defaults.json // src/defaults.json
var bundleVersion = "codeql-bundle-v2.23.3"; var bundleVersion = "codeql-bundle-v2.23.5";
var cliVersion = "2.23.3"; var cliVersion = "2.23.5";
// src/overlay-database-utils.ts // src/overlay-database-utils.ts
var fs3 = __toESM(require("fs")); var fs3 = __toESM(require("fs"));

View File

@@ -99683,8 +99683,8 @@ function getActionsLogger() {
var core7 = __toESM(require_core()); var core7 = __toESM(require_core());
// src/defaults.json // src/defaults.json
var bundleVersion = "codeql-bundle-v2.23.3"; var bundleVersion = "codeql-bundle-v2.23.5";
var cliVersion = "2.23.3"; var cliVersion = "2.23.5";
// src/languages.ts // src/languages.ts
var KnownLanguage = /* @__PURE__ */ ((KnownLanguage2) => { var KnownLanguage = /* @__PURE__ */ ((KnownLanguage2) => {

4
lib/upload-lib.js generated
View File

@@ -86724,8 +86724,8 @@ var path4 = __toESM(require("path"));
var semver4 = __toESM(require_semver2()); var semver4 = __toESM(require_semver2());
// src/defaults.json // src/defaults.json
var bundleVersion = "codeql-bundle-v2.23.3"; var bundleVersion = "codeql-bundle-v2.23.5";
var cliVersion = "2.23.3"; var cliVersion = "2.23.5";
// src/overlay-database-utils.ts // src/overlay-database-utils.ts
var fs3 = __toESM(require("fs")); var fs3 = __toESM(require("fs"));

View File

@@ -86504,8 +86504,8 @@ var path4 = __toESM(require("path"));
var semver3 = __toESM(require_semver2()); var semver3 = __toESM(require_semver2());
// src/defaults.json // src/defaults.json
var bundleVersion = "codeql-bundle-v2.23.3"; var bundleVersion = "codeql-bundle-v2.23.5";
var cliVersion = "2.23.3"; var cliVersion = "2.23.5";
// src/overlay-database-utils.ts // src/overlay-database-utils.ts
var fs3 = __toESM(require("fs")); var fs3 = __toESM(require("fs"));

View File

@@ -4,6 +4,7 @@ operatingSystems: ["ubuntu", "macos", "windows"]
versions: ["nightly-latest"] versions: ["nightly-latest"]
useAllPlatformBundle: "true" useAllPlatformBundle: "true"
installGo: true installGo: true
installDotNet: true
steps: steps:
- id: init - id: init
uses: ./../action/init uses: ./../action/init

View File

@@ -3,6 +3,7 @@ description: "Checks that specifying 'ref' and 'sha' as inputs works"
versions: ["default"] versions: ["default"]
installGo: true installGo: true
installPython: true installPython: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -2,6 +2,7 @@ name: "autobuild-action"
description: "Tests that the C# autobuild action works" description: "Tests that the C# autobuild action works"
operatingSystems: ["ubuntu", "macos", "windows"] operatingSystems: ["ubuntu", "macos", "windows"]
versions: ["linked"] versions: ["linked"]
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -2,6 +2,7 @@ name: "Build mode manual"
description: "An end-to-end integration test of a Java repository built using 'build-mode: manual'" description: "An end-to-end integration test of a Java repository built using 'build-mode: manual'"
versions: ["nightly-latest"] versions: ["nightly-latest"]
installGo: true installGo: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
id: init id: init

View File

@@ -3,6 +3,7 @@ description: "Tests that file baseline information is exported when the feature
operatingSystems: ["ubuntu", "macos", "windows"] operatingSystems: ["ubuntu", "macos", "windows"]
versions: ["nightly-latest"] versions: ["nightly-latest"]
installGo: true installGo: true
installDotNet: true
env: env:
CODEQL_ACTION_SUBLANGUAGE_FILE_COVERAGE: true CODEQL_ACTION_SUBLANGUAGE_FILE_COVERAGE: true
steps: steps:

View File

@@ -7,6 +7,7 @@ versions:
- linked - linked
- nightly-latest - nightly-latest
installGo: true installGo: true
installDotNet: true
env: env:
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false" DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
steps: steps:

View File

@@ -3,6 +3,7 @@ description: "Tests using a CodeQL bundle from a local file rather than a URL"
versions: ["linked"] versions: ["linked"]
installGo: true installGo: true
installPython: true installPython: true
installDotNet: true
steps: steps:
- name: Fetch latest CodeQL bundle - name: Fetch latest CodeQL bundle
run: | run: |

View File

@@ -5,6 +5,7 @@ env:
CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI: true CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI: true
installGo: true installGo: true
installPython: true installPython: true
installDotNet: true
steps: steps:
- name: Use Xcode 16 - name: Use Xcode 16
if: runner.os == 'macOS' && matrix.version != 'nightly-latest' if: runner.os == 'macOS' && matrix.version != 'nightly-latest'

View File

@@ -4,6 +4,7 @@ versions: ["linked", "default", "nightly-latest"] # This feature is not compatib
installGo: true installGo: true
installNode: true installNode: true
installPython: true installPython: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -3,6 +3,7 @@ description: "Checks that specifying packages using a combination of a config fi
versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs
installGo: true installGo: true
installNode: true installNode: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -3,6 +3,7 @@ description: "Checks that specifying packages using only a config file works"
versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs
installGo: true installGo: true
installNode: true installNode: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -3,6 +3,7 @@ description: "Checks that specifying packages using the input to the Action work
versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs
installGo: true installGo: true
installNode: true installNode: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -7,6 +7,7 @@ versions:
- nightly-latest - nightly-latest
installGo: true installGo: true
installPython: true installPython: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -3,6 +3,7 @@ description: "Tests a split-up workflow in which we first build a database and l
operatingSystems: ["ubuntu", "macos"] operatingSystems: ["ubuntu", "macos"]
versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs
installGo: true installGo: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -3,6 +3,7 @@ description: "Tests creation of a Swift database using custom build"
versions: ["linked", "default", "nightly-latest"] versions: ["linked", "default", "nightly-latest"]
operatingSystems: ["macos"] operatingSystems: ["macos"]
installGo: true installGo: true
installDotNet: true
env: env:
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false" DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
steps: steps:

View File

@@ -7,6 +7,7 @@ versions:
- nightly-latest - nightly-latest
installGo: true installGo: true
installPython: true installPython: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
id: init id: init

View File

@@ -3,6 +3,7 @@ description: "Checks that specifying 'ref' and 'sha' as inputs works"
versions: ["default"] versions: ["default"]
installGo: true installGo: true
installPython: true installPython: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -4,6 +4,7 @@ versions: ["default"]
analysisKinds: ["code-scanning", "code-quality", "code-scanning,code-quality"] analysisKinds: ["code-scanning", "code-quality", "code-scanning,code-quality"]
installGo: true installGo: true
installPython: true installPython: true
installDotNet: true
steps: steps:
- uses: ./../action/init - uses: ./../action/init
with: with:

View File

@@ -3,6 +3,7 @@ description: "Checks that a custom `checkout_path` will find the proper commit_o
versions: ["linked"] versions: ["linked"]
installGo: true installGo: true
installPython: true installPython: true
installDotNet: true
steps: steps:
# This ensures we don't accidentally use the original checkout for any part of the test. # This ensures we don't accidentally use the original checkout for any part of the test.
- name: Delete original checkout - name: Delete original checkout

View File

@@ -204,6 +204,25 @@ for file in sorted((this_dir / 'checks').glob('*.yml')):
} }
}) })
installDotNet = is_truthy(checkSpecification.get('installDotNet', ''))
if installDotNet:
baseDotNetVersionExpr = '9.x'
workflowInputs['dotnet-version'] = {
'type': 'string',
'description': 'The version of .NET to install',
'required': False,
'default': baseDotNetVersionExpr,
}
steps.append({
'name': 'Install .NET',
'uses': 'actions/setup-dotnet@v5',
'with': {
'dotnet-version': '${{ inputs.dotnet-version || \'' + baseDotNetVersionExpr + '\' }}'
}
})
# If container initialisation steps are present in the check specification, # If container initialisation steps are present in the check specification,
# make sure to execute them first. # make sure to execute them first.
if 'container' in checkSpecification and 'container-init-steps' in checkSpecification: if 'container' in checkSpecification and 'container-init-steps' in checkSpecification:
@@ -337,11 +356,6 @@ for collection_name in collections:
'GO111MODULE': 'auto' 'GO111MODULE': 'auto'
}, },
'on': { 'on': {
'push': {
'paths': [
f'.github/workflows/__{collection_name}.yml'
]
},
'workflow_dispatch': { 'workflow_dispatch': {
'inputs': combinedInputs 'inputs': combinedInputs
}, },

View File

@@ -1,6 +1,6 @@
{ {
"bundleVersion": "codeql-bundle-v2.23.3", "bundleVersion": "codeql-bundle-v2.23.5",
"cliVersion": "2.23.3", "cliVersion": "2.23.5",
"priorBundleVersion": "codeql-bundle-v2.23.2", "priorBundleVersion": "codeql-bundle-v2.23.3",
"priorCliVersion": "2.23.2" "priorCliVersion": "2.23.3"
} }