Compare commits

...

15 Commits

Author SHA1 Message Date
Sam Robson
fbc9ae9062 fix(ci): set up Java before Kotlin in PR checks 2026-10-26 11:54:59 +00:00
Michael B. Gale
3306ba4df7 Merge pull request #4263 from github/mbg/pr-dequeue-notify
Add workflow to comment on a PR when it was dequeued
2026-10-23 12:00:00 +00:00
Henry Mercer
562acf5a94 Merge pull request #4264 from github/henrymercer/exclude-pr-only-checks-from-sync-checks
Exclude checks that don't always run from the sync script
2026-10-23 11:30:29 +00:00
Michael B. Gale
37a5faff25 Switch to pull_request.user.login 2026-10-23 12:19:29 +01:00
Michael B. Gale
54b2801f20 Merge branch 'main' into mbg/pr-dequeue-notify 2026-10-22 17:33:56 +01:00
Michael B. Gale
040890448b Add workflow to comment on a PR when it was dequeued 2026-10-22 16:11:13 +01:00
Henry Mercer
c1ab1b4065 Don't require github-advanced-security or License compliance check
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-22 15:13:50 +01:00
Henry Mercer
c2293b32da Merge pull request #4244 from github/henrymercer/graduate-per-language-bundles
Use per-language CodeQL bundles by default
2026-10-22 14:01:48 +00:00
Henry Mercer
f033e23010 Clarify why the file baseline check uses a custom configuration
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-22 12:04:37 +01:00
Henry Mercer
0171a2b52f Take a single ActionState parameter in getPerLanguageBundleLanguage
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-22 12:04:37 +01:00
Henry Mercer
626d8b9364 Use toolcache.ts in per-language-bundle-validation.yml
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-22 11:49:39 +01:00
Henry Mercer
922e2ff061 Merge remote-tracking branch 'origin/main' into henrymercer/graduate-per-language-bundles
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-22 11:43:17 +01:00
Henry Mercer
2d68850214 Remove per-language bundle rollout flag
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d9f196d4-6d15-44ca-bd01-cd022d57d2cc
2026-10-16 14:00:39 +01:00
Henry Mercer
9bf78d13c9 Use per-language bundles by default
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d9f196d4-6d15-44ca-bd01-cd022d57d2cc
2026-10-16 14:00:12 +01:00
Henry Mercer
64e5c6243a Prepare per-language bundle graduation checks
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d9f196d4-6d15-44ca-bd01-cd022d57d2cc
2026-10-16 13:59:52 +01:00
67 changed files with 1131 additions and 315 deletions

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: all-platform-bundle-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: all-platform-bundle-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
all-platform-bundle: all-platform-bundle:
strategy: strategy:
@@ -79,6 +89,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: analysis-kinds-${{github.ref}} group: analysis-kinds-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
analysis-kinds: analysis-kinds:
strategy: strategy:
@@ -68,6 +78,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: analyze-ref-input-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: analyze-ref-input-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
analyze-ref-input: analyze-ref-input:
strategy: strategy:
@@ -75,6 +85,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -25,6 +25,11 @@ on:
description: The version of .NET to install description: The version of .NET to install
required: false required: false
default: 9.x default: 9.x
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -32,12 +37,17 @@ on:
description: The version of .NET to install description: The version of .NET to install
required: false required: false
default: 9.x default: 9.x
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: autobuild-action-${{github.ref}}-${{inputs.dotnet-version}} group: autobuild-action-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.java-version}}
jobs: jobs:
autobuild-action: autobuild-action:
strategy: strategy:
@@ -64,6 +74,11 @@ jobs:
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with: with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }} dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: autobuild-working-dir-${{github.ref}} group: autobuild-working-dir-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
autobuild-working-dir: autobuild-working-dir:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: build-mode-manual-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: build-mode-manual-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
build-mode-manual: build-mode-manual:
strategy: strategy:
@@ -75,6 +85,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: build-mode-none-${{github.ref}} group: build-mode-none-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
build-mode-none: build-mode-none:
strategy: strategy:
@@ -48,6 +58,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: build-mode-rollback-${{github.ref}} group: build-mode-rollback-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
build-mode-rollback: build-mode-rollback:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: bundle-from-nightly-${{github.ref}} group: bundle-from-nightly-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
bundle-from-nightly: bundle-from-nightly:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: bundle-from-toolcache-${{github.ref}} group: bundle-from-toolcache-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
bundle-from-toolcache: bundle-from-toolcache:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: with:

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: bundle-toolcache-${{github.ref}} group: bundle-toolcache-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
bundle-toolcache: bundle-toolcache:
strategy: strategy:
@@ -50,6 +60,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: with:

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: cleanup-db-cluster-dir-${{github.ref}} group: cleanup-db-cluster-dir-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
cleanup-db-cluster-dir: cleanup-db-cluster-dir:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: config-export-${{github.ref}} group: config-export-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
config-export: config-export:
strategy: strategy:
@@ -48,6 +58,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

21
.github/workflows/__config-input.yml generated vendored
View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: config-input-${{github.ref}} group: config-input-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
config-input: config-input:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: with:

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: cpp-deptrace-disabled-${{github.ref}} group: cpp-deptrace-disabled-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
cpp-deptrace-disabled: cpp-deptrace-disabled:
strategy: strategy:
@@ -50,6 +60,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: cpp-deptrace-enabled-on-macos-${{github.ref}} group: cpp-deptrace-enabled-on-macos-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
cpp-deptrace-enabled-on-macos: cpp-deptrace-enabled-on-macos:
strategy: strategy:
@@ -48,6 +58,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: cpp-deptrace-enabled-${{github.ref}} group: cpp-deptrace-enabled-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
cpp-deptrace-enabled: cpp-deptrace-enabled:
strategy: strategy:
@@ -50,6 +60,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: diagnostics-export-${{github.ref}} group: diagnostics-export-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
diagnostics-export: diagnostics-export:
strategy: strategy:
@@ -48,6 +58,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: with:

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: diagnostics-without-db-${{github.ref}} group: diagnostics-without-db-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
diagnostics-without-db: diagnostics-without-db:
strategy: strategy:
@@ -53,6 +63,11 @@ jobs:
# #
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: with:

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: export-file-baseline-information-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: export-file-baseline-information-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
export-file-baseline-information: export-file-baseline-information:
strategy: strategy:
@@ -79,6 +89,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test
@@ -91,6 +106,11 @@ jobs:
with: with:
languages: javascript languages: javascript
tools: ${{ steps.prepare-test.outputs.tools-url }} tools: ${{ steps.prepare-test.outputs.tools-url }}
# To balance speed and coverage, analyze only JavaScript but use the combined bundle so
# baseline information is reported for every language in the multi-language repository. A
# custom configuration prevents per-language bundles from being used.
config: |
paths-ignore: []
- name: Build code - name: Build code
run: ./build.sh run: ./build.sh
- uses: ./../action/analyze - uses: ./../action/analyze
@@ -124,5 +144,4 @@ jobs:
env: env:
CODEQL_ACTION_SKIP_FILE_COVERAGE_ON_PRS: false CODEQL_ACTION_SKIP_FILE_COVERAGE_ON_PRS: false
CODEQL_ACTION_SUBLANGUAGE_FILE_COVERAGE: true CODEQL_ACTION_SUBLANGUAGE_FILE_COVERAGE: true
CODEQL_ACTION_PER_LANGUAGE_BUNDLES: false
CODEQL_ACTION_TEST_MODE: true CODEQL_ACTION_TEST_MODE: true

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: extractor-ram-threads-${{github.ref}} group: extractor-ram-threads-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
extractor-ram-threads: extractor-ram-threads:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: go-custom-queries-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: go-custom-queries-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
go-custom-queries: go-custom-queries:
strategy: strategy:
@@ -77,6 +87,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -25,6 +25,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -32,12 +37,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: go-indirect-tracing-workaround-diagnostic-${{github.ref}}-${{inputs.go-version}} group: go-indirect-tracing-workaround-diagnostic-${{github.ref}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
go-indirect-tracing-workaround-diagnostic: go-indirect-tracing-workaround-diagnostic:
strategy: strategy:
@@ -61,6 +71,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -25,6 +25,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -32,12 +37,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: go-indirect-tracing-workaround-no-file-program-${{github.ref}}-${{inputs.go-version}} group: go-indirect-tracing-workaround-no-file-program-${{github.ref}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
go-indirect-tracing-workaround-no-file-program: go-indirect-tracing-workaround-no-file-program:
strategy: strategy:
@@ -61,6 +71,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -25,6 +25,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -32,12 +37,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: go-indirect-tracing-workaround-${{github.ref}}-${{inputs.go-version}} group: go-indirect-tracing-workaround-${{github.ref}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
go-indirect-tracing-workaround: go-indirect-tracing-workaround:
strategy: strategy:
@@ -61,6 +71,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -25,6 +25,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -32,12 +37,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: go-tracing-autobuilder-${{github.ref}}-${{inputs.go-version}} group: go-tracing-autobuilder-${{github.ref}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
go-tracing-autobuilder: go-tracing-autobuilder:
strategy: strategy:
@@ -81,6 +91,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -25,6 +25,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -32,12 +37,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: go-tracing-custom-build-steps-${{github.ref}}-${{inputs.go-version}} group: go-tracing-custom-build-steps-${{github.ref}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
go-tracing-custom-build-steps: go-tracing-custom-build-steps:
strategy: strategy:
@@ -81,6 +91,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -25,6 +25,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
go-version: go-version:
@@ -32,12 +37,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: go-tracing-legacy-workflow-${{github.ref}}-${{inputs.go-version}} group: go-tracing-legacy-workflow-${{github.ref}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
go-tracing-legacy-workflow: go-tracing-legacy-workflow:
strategy: strategy:
@@ -81,6 +91,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

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

@@ -20,6 +20,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
jobs: jobs:
go-custom-queries: go-custom-queries:
name: 'Go: Custom queries' name: 'Go: Custom queries'
@@ -30,6 +35,7 @@ jobs:
with: with:
dotnet-version: ${{ inputs.dotnet-version }} dotnet-version: ${{ inputs.dotnet-version }}
go-version: ${{ inputs.go-version }} go-version: ${{ inputs.go-version }}
java-version: ${{ inputs.java-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:
@@ -38,6 +44,7 @@ jobs:
uses: ./.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml uses: ./.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml
with: with:
go-version: ${{ inputs.go-version }} go-version: ${{ inputs.go-version }}
java-version: ${{ inputs.java-version }}
go-indirect-tracing-workaround-no-file-program: go-indirect-tracing-workaround-no-file-program:
name: 'Go: diagnostic when `file` is not installed' name: 'Go: diagnostic when `file` is not installed'
permissions: permissions:
@@ -46,6 +53,7 @@ jobs:
uses: ./.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml uses: ./.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml
with: with:
go-version: ${{ inputs.go-version }} go-version: ${{ inputs.go-version }}
java-version: ${{ inputs.java-version }}
go-indirect-tracing-workaround: go-indirect-tracing-workaround:
name: 'Go: workaround for indirect tracing' name: 'Go: workaround for indirect tracing'
permissions: permissions:
@@ -54,6 +62,7 @@ jobs:
uses: ./.github/workflows/__go-indirect-tracing-workaround.yml uses: ./.github/workflows/__go-indirect-tracing-workaround.yml
with: with:
go-version: ${{ inputs.go-version }} go-version: ${{ inputs.go-version }}
java-version: ${{ inputs.java-version }}
go-tracing-autobuilder: go-tracing-autobuilder:
name: 'Go: tracing with autobuilder step' name: 'Go: tracing with autobuilder step'
permissions: permissions:
@@ -62,6 +71,7 @@ jobs:
uses: ./.github/workflows/__go-tracing-autobuilder.yml uses: ./.github/workflows/__go-tracing-autobuilder.yml
with: with:
go-version: ${{ inputs.go-version }} go-version: ${{ inputs.go-version }}
java-version: ${{ inputs.java-version }}
go-tracing-custom-build-steps: go-tracing-custom-build-steps:
name: 'Go: tracing with custom build steps' name: 'Go: tracing with custom build steps'
permissions: permissions:
@@ -70,6 +80,7 @@ jobs:
uses: ./.github/workflows/__go-tracing-custom-build-steps.yml uses: ./.github/workflows/__go-tracing-custom-build-steps.yml
with: with:
go-version: ${{ inputs.go-version }} go-version: ${{ inputs.go-version }}
java-version: ${{ inputs.java-version }}
go-tracing-legacy-workflow: go-tracing-legacy-workflow:
name: 'Go: tracing with legacy workflow' name: 'Go: tracing with legacy workflow'
permissions: permissions:
@@ -78,3 +89,4 @@ jobs:
uses: ./.github/workflows/__go-tracing-legacy-workflow.yml uses: ./.github/workflows/__go-tracing-legacy-workflow.yml
with: with:
go-version: ${{ inputs.go-version }} go-version: ${{ inputs.go-version }}
java-version: ${{ inputs.java-version }}

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: init-with-registries-${{github.ref}} group: init-with-registries-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
init-with-registries: init-with-registries:
strategy: strategy:
@@ -50,6 +60,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: javascript-source-root-${{github.ref}} group: javascript-source-root-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
javascript-source-root: javascript-source-root:
strategy: strategy:
@@ -50,6 +60,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: job-run-uuid-sarif-${{github.ref}} group: job-run-uuid-sarif-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
job-run-uuid-sarif: job-run-uuid-sarif:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: language-aliases-${{github.ref}} group: language-aliases-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
language-aliases: language-aliases:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

17
.github/workflows/__linux-arm64.yml generated vendored
View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: linux-arm64-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: linux-arm64-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
linux-arm64: linux-arm64:
strategy: strategy:
@@ -75,6 +85,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

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

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: local-bundle-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: local-bundle-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
local-bundle: local-bundle:
strategy: strategy:
@@ -75,6 +85,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: multi-language-autodetect-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: multi-language-autodetect-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
multi-language-autodetect: multi-language-autodetect:
strategy: strategy:
@@ -109,6 +119,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: overlay-init-fallback-${{github.ref}} group: overlay-init-fallback-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
overlay-init-fallback: overlay-init-fallback:
strategy: strategy:
@@ -48,6 +58,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: packaging-codescanning-config-inputs-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: packaging-codescanning-config-inputs-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
packaging-codescanning-config-inputs-js: packaging-codescanning-config-inputs-js:
strategy: strategy:
@@ -79,6 +89,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: with:

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: packaging-config-inputs-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: packaging-config-inputs-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
packaging-config-inputs-js: packaging-config-inputs-js:
strategy: strategy:
@@ -79,6 +89,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: with:

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: packaging-config-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: packaging-config-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
packaging-config-js: packaging-config-js:
strategy: strategy:
@@ -79,6 +89,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: with:

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: packaging-inputs-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: packaging-inputs-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
packaging-inputs-js: packaging-inputs-js:
strategy: strategy:
@@ -79,6 +89,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: with:

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: per-language-bundle-validation-${{github.ref}} group: per-language-bundle-validation-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
per-language-bundle-validation: per-language-bundle-validation:
strategy: strategy:
@@ -36,40 +46,40 @@ jobs:
include: include:
- language: actions - language: actions
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
expected-extractors: actions javascript expected-extractors: actions javascript
- language: cpp - language: cpp
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
build-mode: manual build-mode: manual
build-command: gcc -o main main.c build-command: gcc -o main main.c
- language: csharp - language: csharp
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
build-mode: none build-mode: none
- language: go - language: go
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
build-mode: autobuild build-mode: autobuild
- language: java - language: java
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
build-mode: none build-mode: none
- language: javascript - language: javascript
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
- language: python - language: python
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
- language: ruby - language: ruby
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
- language: rust - language: rust
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
- language: swift - language: swift
os: macos-latest-xlarge os: macos-latest-xlarge
version: nightly-latest version: linked
build-mode: autobuild build-mode: autobuild
name: Per-language bundles name: Per-language bundles
if: github.triggering_actor != 'dependabot[bot]' if: github.triggering_actor != 'dependabot[bot]'
@@ -81,6 +91,20 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 20.x
cache: npm
- name: Install newer npm
run: npm install -g npm@11.19.1
- name: Install dependencies
run: npm ci
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test
@@ -88,6 +112,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: Remove CodeQL from toolcache
run: |
cd ./../action
npx tsx ./pr-checks/toolcache.ts clear
- uses: ./../action/init - uses: ./../action/init
id: init id: init
with: with:
@@ -128,9 +156,8 @@ jobs:
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }} CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
run: | run: |
# A bundle that is missing most of its extractors must never be left in the toolcache, # A bundle that is missing most of its extractors must never be left in the toolcache,
# where a later job analyzing a different language could pick it up. The runner image # where a later job analyzing a different language could pick it up. Per-language bundles
# ships with its own CodeQL in the toolcache, so check where this bundle was extracted to # must instead be extracted under the runner's temporary directory.
# rather than whether the toolcache contains CodeQL at all.
echo "CodeQL is at $CODEQL_PATH" echo "CodeQL is at $CODEQL_PATH"
if [[ "$CODEQL_PATH" == "$RUNNER_TOOL_CACHE"/* ]]; then if [[ "$CODEQL_PATH" == "$RUNNER_TOOL_CACHE"/* ]]; then
echo "::error::The per-language bundle was added to the toolcache at $CODEQL_PATH." echo "::error::The per-language bundle was added to the toolcache at $CODEQL_PATH."
@@ -160,5 +187,4 @@ jobs:
fi fi
echo "Created a ${LANGUAGE} database at ${database}." echo "Created a ${LANGUAGE} database at ${database}."
env: env:
CODEQL_ACTION_PER_LANGUAGE_BUNDLES: true
CODEQL_ACTION_TEST_MODE: true CODEQL_ACTION_TEST_MODE: true

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: remote-config-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: remote-config-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
remote-config: remote-config:
strategy: strategy:
@@ -77,6 +87,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: resolve-environment-action-${{github.ref}} group: resolve-environment-action-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
resolve-environment-action: resolve-environment-action:
strategy: strategy:
@@ -50,6 +60,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: rubocop-multi-language-${{github.ref}} group: rubocop-multi-language-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
rubocop-multi-language: rubocop-multi-language:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

21
.github/workflows/__ruby.yml generated vendored
View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: ruby-${{github.ref}} group: ruby-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
ruby: ruby:
strategy: strategy:
@@ -56,6 +66,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

21
.github/workflows/__rust.yml generated vendored
View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: rust-${{github.ref}} group: rust-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
rust: rust:
strategy: strategy:
@@ -54,6 +64,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: split-workflow-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: split-workflow-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
split-workflow: split-workflow:
strategy: strategy:
@@ -85,6 +95,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

21
.github/workflows/__start-proxy.yml generated vendored
View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: start-proxy-${{github.ref}} group: start-proxy-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
start-proxy: start-proxy:
strategy: strategy:
@@ -50,6 +60,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: submit-sarif-failure-${{github.ref}} group: submit-sarif-failure-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
submit-sarif-failure: submit-sarif-failure:
strategy: strategy:
@@ -50,6 +60,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -19,15 +19,25 @@ on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: workflow_dispatch:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: {} inputs:
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: swift-autobuild-${{github.ref}} group: swift-autobuild-${{github.ref}}-${{inputs.java-version}}
jobs: jobs:
swift-autobuild: swift-autobuild:
strategy: strategy:
@@ -46,6 +56,11 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: swift-custom-build-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: swift-custom-build-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
swift-custom-build: swift-custom-build:
strategy: strategy:
@@ -79,6 +89,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: unset-environment-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: unset-environment-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
unset-environment: unset-environment:
strategy: strategy:
@@ -77,6 +87,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: upload-ref-sha-input-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: upload-ref-sha-input-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
upload-ref-sha-input: upload-ref-sha-input:
strategy: strategy:
@@ -75,6 +85,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

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

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: upload-sarif-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: upload-sarif-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
upload-sarif: upload-sarif:
strategy: strategy:
@@ -82,6 +92,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

View File

@@ -30,6 +30,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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
workflow_call: workflow_call:
inputs: inputs:
dotnet-version: dotnet-version:
@@ -42,12 +47,17 @@ 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'
java-version:
type: string
description: The version of Java to install
required: false
default: '17'
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency: concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: with-checkout-path-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}} group: with-checkout-path-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.java-version}}
jobs: jobs:
with-checkout-path: with-checkout-path:
strategy: strategy:
@@ -76,6 +86,11 @@ 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 Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
- name: Prepare test - name: Prepare test
id: prepare-test id: prepare-test
uses: ./.github/actions/prepare-test uses: ./.github/actions/prepare-test

28
.github/workflows/pr-dequeued.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: PR dequeued
on:
pull_request:
types:
- dequeued
jobs:
notify:
name: Notify
runs-on: ubuntu-slim
if: github.event.pull_request.merged != true
permissions:
pull-requests: write
steps:
- name: Notify that the PR was removed from the merge queue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REASON: ${{ github.event.reason }}
USER: ${{ github.event.pull_request.user.login }}
run: |
echo "@$USER The pull request was removed from the merge queue (\`$REASON\`)." \
"Please resolve any issues if required and enqueue the PR again." |
gh pr comment --body-file - --repo github/codeql-action "$PR_NUMBER"

43
lib/entry-points.js generated
View File

@@ -172139,11 +172139,6 @@ var featureConfig = {
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS_SKIP_RESOURCE_CHECKS", envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS_SKIP_RESOURCE_CHECKS",
minimumVersion: void 0 minimumVersion: void 0
}, },
["per_language_bundles_v2" /* PerLanguageBundles */]: {
defaultValue: false,
envVar: "CODEQL_ACTION_PER_LANGUAGE_BUNDLES",
minimumVersion: void 0
},
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: { ["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
defaultValue: false, defaultValue: false,
envVar: "CODEQL_ACTION_QA_TELEMETRY", envVar: "CODEQL_ACTION_QA_TELEMETRY",
@@ -175692,11 +175687,7 @@ function getOtherLanguagePacksReason(inputs) {
function findNonBuiltInQuery(queries) { function findNonBuiltInQuery(queries) {
return queries?.find((query) => !defaultSuites.has(query.uses))?.uses; return queries?.find((query) => !defaultSuites.has(query.uses))?.uses;
} }
async function getPerLanguageBundleLanguage({ function getPerLanguageBundleLanguage(action, options) {
env,
features,
logger: logger2
}, options) {
const { const {
rawLanguages, rawLanguages,
otherLanguagePacksReason, otherLanguagePacksReason,
@@ -175707,12 +175698,11 @@ async function getPerLanguageBundleLanguage({
isLatestNightly isLatestNightly
} = options; } = options;
const explain = (reason) => { const explain = (reason) => {
logger2.debug(`Not using a per-language CodeQL bundle since ${reason}.`); action.logger.debug(
`Not using a per-language CodeQL bundle since ${reason}.`
);
return void 0; return void 0;
}; };
if (!await features.getValue("per_language_bundles_v2" /* PerLanguageBundles */)) {
return explain("the feature is disabled");
}
if (otherLanguagePacksReason !== void 0) { if (otherLanguagePacksReason !== void 0) {
return explain(otherLanguagePacksReason); return explain(otherLanguagePacksReason);
} }
@@ -175731,7 +175721,7 @@ async function getPerLanguageBundleLanguage({
if (variant !== "GitHub.com" /* DOTCOM */) { if (variant !== "GitHub.com" /* DOTCOM */) {
return explain(`we are running against ${variant}`); return explain(`we are running against ${variant}`);
} }
if (!isGitHubHostedRunner(env)) { if (!isGitHubHostedRunner(action.env)) {
return explain("the job is not running on a GitHub-hosted runner"); return explain("the job is not running on a GitHub-hosted runner");
} }
if (!isLatestNightly) { if (!isLatestNightly) {
@@ -176382,7 +176372,7 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, rawLanguages, othe
); );
} }
bundle = await getLatestNightlyBundle( bundle = await getLatestNightlyBundle(
{ env: getEnv(), features, logger: logger2 }, { env: getEnv(), logger: logger2 },
rawLanguages, rawLanguages,
otherLanguagePacksReason, otherLanguagePacksReason,
variant variant
@@ -176547,17 +176537,14 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, rawLanguages, othe
compressionMethod = cliVersion2 !== void 0 && await useZstdBundle(cliVersion2, tarSupportsZstd) ? "zstd" : "gzip"; compressionMethod = cliVersion2 !== void 0 && await useZstdBundle(cliVersion2, tarSupportsZstd) ? "zstd" : "gzip";
const action = { env: getEnv(), logger: logger2 }; const action = { env: getEnv(), logger: logger2 };
const platform2 = getBundlePlatform(); const platform2 = getBundlePlatform();
const perLanguageBundleLanguage = await getPerLanguageBundleLanguage( const perLanguageBundleLanguage = getPerLanguageBundleLanguage(action, {
{ ...action, features }, rawLanguages,
{ otherLanguagePacksReason,
rawLanguages, cliVersion: cliVersion2,
otherLanguagePacksReason, compressionMethod,
cliVersion: cliVersion2, platform: platform2,
compressionMethod, variant
platform: platform2, });
variant
}
);
const resolveBundleURL = (language) => getCodeQLAssetDownloadURL( const resolveBundleURL = (language) => getCodeQLAssetDownloadURL(
action, action,
apiDetails, apiDetails,
@@ -176832,7 +176819,7 @@ async function getLatestNightlyBundle(action, rawLanguages, otherLanguagePacksRe
zstdAvailability.available zstdAvailability.available
) ? "zstd" : "gzip"; ) ? "zstd" : "gzip";
const platform2 = getBundlePlatform(); const platform2 = getBundlePlatform();
const language = await getPerLanguageBundleLanguage(action, { const language = getPerLanguageBundleLanguage(action, {
rawLanguages, rawLanguages,
otherLanguagePacksReason, otherLanguagePacksReason,
cliVersion: void 0, cliVersion: void 0,

View File

@@ -11,16 +11,17 @@ installDotNet: true
env: env:
CODEQL_ACTION_SKIP_FILE_COVERAGE_ON_PRS: false CODEQL_ACTION_SKIP_FILE_COVERAGE_ON_PRS: false
CODEQL_ACTION_SUBLANGUAGE_FILE_COVERAGE: true CODEQL_ACTION_SUBLANGUAGE_FILE_COVERAGE: true
# To balance speed and coverage, we analyze only a single language (JavaScript), but use the
# combined bundle so we can test that baseline information is reported for each language in the
# multi-language source directory.
CODEQL_ACTION_PER_LANGUAGE_BUNDLES: false
steps: steps:
- uses: ./../action/init - uses: ./../action/init
id: init id: init
with: with:
languages: javascript languages: javascript
tools: ${{ steps.prepare-test.outputs.tools-url }} tools: ${{ steps.prepare-test.outputs.tools-url }}
# To balance speed and coverage, analyze only JavaScript but use the combined bundle so
# baseline information is reported for every language in the multi-language repository. A
# custom configuration prevents per-language bundles from being used.
config: |
paths-ignore: []
- name: Build code - name: Build code
run: ./build.sh run: ./build.sh
- uses: ./../action/analyze - uses: ./../action/analyze

View File

@@ -1,49 +1,51 @@
name: Per-language bundles name: Per-language bundles
description: Validates extraction and analysis using each per-language CodeQL bundle. description: Validates extraction and analysis using each per-language CodeQL bundle.
# TODO: Use a released bundle once releases include per-language bundles.
matrix: matrix:
include: include:
- language: actions - language: actions
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
# Actions also needs the JavaScript extractor. # Actions also needs the JavaScript extractor.
expected-extractors: actions javascript expected-extractors: actions javascript
- language: cpp - language: cpp
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
build-mode: manual build-mode: manual
build-command: gcc -o main main.c build-command: gcc -o main main.c
- language: csharp - language: csharp
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
build-mode: none build-mode: none
- language: go - language: go
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
build-mode: autobuild build-mode: autobuild
- language: java - language: java
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
build-mode: none build-mode: none
- language: javascript - language: javascript
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
- language: python - language: python
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
- language: ruby - language: ruby
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
- language: rust - language: rust
os: ubuntu-latest os: ubuntu-latest
version: nightly-latest version: linked
- language: swift - language: swift
os: macos-latest-xlarge os: macos-latest-xlarge
version: nightly-latest version: linked
build-mode: autobuild build-mode: autobuild
env: installNode: true
CODEQL_ACTION_PER_LANGUAGE_BUNDLES: true
steps: steps:
- name: Remove CodeQL from toolcache
run: |
cd ./../action
npx tsx ./pr-checks/toolcache.ts clear
- uses: ./../action/init - uses: ./../action/init
id: init id: init
with: with:
@@ -84,9 +86,8 @@ steps:
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }} CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
run: | run: |
# A bundle that is missing most of its extractors must never be left in the toolcache, # A bundle that is missing most of its extractors must never be left in the toolcache,
# where a later job analyzing a different language could pick it up. The runner image # where a later job analyzing a different language could pick it up. Per-language bundles
# ships with its own CodeQL in the toolcache, so check where this bundle was extracted to # must instead be extracted under the runner's temporary directory.
# rather than whether the toolcache contains CodeQL at all.
echo "CodeQL is at $CODEQL_PATH" echo "CodeQL is at $CODEQL_PATH"
if [[ "$CODEQL_PATH" == "$RUNNER_TOOL_CACHE"/* ]]; then if [[ "$CODEQL_PATH" == "$RUNNER_TOOL_CACHE"/* ]]; then
echo "::error::The per-language bundle was added to the toolcache at $CODEQL_PATH." echo "::error::The per-language bundle was added to the toolcache at $CODEQL_PATH."

View File

@@ -20,3 +20,7 @@ is:
- "Release info" - "Release info"
- "Upload results" - "Upload results"
- "Update release branch" - "Update release branch"
# These checks are known not to run on every PR (for example, some release
# PRs), so requiring them would block the PRs they don't run on.
- "github-advanced-security"
- "License compliance check"

View File

@@ -543,8 +543,12 @@ function generateJob(
? checkSpecification.useAllPlatformBundle ? checkSpecification.useAllPlatformBundle
: "false"; : "false";
// Determine which languages or frameworks have to be installed. // Kotlin requires a compatible JDK rather than the runner image's default.
const setupInfo = getSetupSteps(checkSpecification); const setupInfo = getSetupSteps({
...checkSpecification,
installJava:
checkSpecification.installJava ?? !("container" in checkSpecification),
});
const workflowInputs = setupInfo.inputs; const workflowInputs = setupInfo.inputs;
// Construct the workflow steps needed for this check. // Construct the workflow steps needed for this check.

View File

@@ -143,11 +143,6 @@ export enum Feature {
OverlayAnalysisStatusCheck = "overlay_analysis_status_check", OverlayAnalysisStatusCheck = "overlay_analysis_status_check",
/** Controls whether overlay build failures on the default branch are stored in the Actions cache. */ /** Controls whether overlay build failures on the default branch are stored in the Actions cache. */
OverlayAnalysisStatusSave = "overlay_analysis_status_save", OverlayAnalysisStatusSave = "overlay_analysis_status_save",
/**
* Controls whether we may download a bundle containing only the single language being analysed,
* rather than the combined bundle that contains every language.
*/
PerLanguageBundles = "per_language_bundles_v2",
QaTelemetryEnabled = "qa_telemetry_enabled", QaTelemetryEnabled = "qa_telemetry_enabled",
/** Routes (some) API requests through the registry proxy. */ /** Routes (some) API requests through the registry proxy. */
ProxyApiRequests = "proxy_api_requests", ProxyApiRequests = "proxy_api_requests",
@@ -393,11 +388,6 @@ export const featureConfig = {
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS_SKIP_RESOURCE_CHECKS", envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS_SKIP_RESOURCE_CHECKS",
minimumVersion: undefined, minimumVersion: undefined,
}, },
[Feature.PerLanguageBundles]: {
defaultValue: false,
envVar: "CODEQL_ACTION_PER_LANGUAGE_BUNDLES",
minimumVersion: undefined,
},
[Feature.QaTelemetryEnabled]: { [Feature.QaTelemetryEnabled]: {
defaultValue: false, defaultValue: false,
envVar: "CODEQL_ACTION_QA_TELEMETRY", envVar: "CODEQL_ACTION_QA_TELEMETRY",

View File

@@ -1,7 +1,6 @@
import test from "ava"; import test from "ava";
import { ActionsEnvVars } from "./environment"; import { ActionsEnvVars } from "./environment";
import { Feature } from "./feature-flags";
import { BuiltInLanguage } from "./languages"; import { BuiltInLanguage } from "./languages";
import { import {
getOtherLanguagePacksReason, getOtherLanguagePacksReason,
@@ -12,7 +11,6 @@ import {
} from "./per-language-bundles"; } from "./per-language-bundles";
import { BundlePlatform } from "./platform"; import { BundlePlatform } from "./platform";
import { import {
createFeatures,
getRecordingLogger, getRecordingLogger,
getTestEnv, getTestEnv,
initAllState, initAllState,
@@ -40,7 +38,6 @@ async function checkEligibility(
env: getTestEnv({ env: getTestEnv({
[ActionsEnvVars.RUNNER_ENVIRONMENT]: "github-hosted", [ActionsEnvVars.RUNNER_ENVIRONMENT]: "github-hosted",
}), }),
features: createFeatures([Feature.PerLanguageBundles]),
...stateOverrides, ...stateOverrides,
}), }),
{ ...ELIGIBLE_OPTIONS, ...overrides }, { ...ELIGIBLE_OPTIONS, ...overrides },
@@ -145,27 +142,6 @@ test("getPerLanguageBundleLanguage requires a supported release version", async
t.is(await checkEligibility({ cliVersion: "2.27.1" }), BuiltInLanguage.java); t.is(await checkEligibility({ cliVersion: "2.27.1" }), BuiltInLanguage.java);
}); });
test("getPerLanguageBundleLanguage requires the feature flag", async (t) => {
t.is(await checkEligibility({}, { features: createFeatures([]) }), undefined);
});
test("getPerLanguageBundleLanguage explains a disabled feature before checking eligibility", async (t) => {
const messages: LoggedMessage[] = [];
const language = await getPerLanguageBundleLanguage(
initAllState({
features: createFeatures([]),
logger: getRecordingLogger(messages, { logToConsole: false }),
}),
{ ...ELIGIBLE_OPTIONS, rawLanguages: undefined, cliVersion: undefined },
);
t.is(language, undefined);
t.deepEqual(
messages.map((message) => message.message),
["Not using a per-language CodeQL bundle since the feature is disabled."],
);
});
test("getPerLanguageBundleLanguage skips only the release version check for the latest nightly", async (t) => { test("getPerLanguageBundleLanguage skips only the release version check for the latest nightly", async (t) => {
const nightly = { isLatestNightly: true, cliVersion: undefined }; const nightly = { isLatestNightly: true, cliVersion: undefined };
t.is(await checkEligibility(nightly), BuiltInLanguage.java); t.is(await checkEligibility(nightly), BuiltInLanguage.java);
@@ -181,10 +157,6 @@ test("getPerLanguageBundleLanguage skips only the release version check for the
]) { ]) {
t.is(await checkEligibility({ ...nightly, ...overrides }), undefined); t.is(await checkEligibility({ ...nightly, ...overrides }), undefined);
} }
t.is(
await checkEligibility(nightly, { features: createFeatures([]) }),
undefined,
);
t.is( t.is(
await checkEligibility(nightly, { await checkEligibility(nightly, {
env: getTestEnv({ [ActionsEnvVars.RUNNER_ENVIRONMENT]: "self-hosted" }), env: getTestEnv({ [ActionsEnvVars.RUNNER_ENVIRONMENT]: "self-hosted" }),

View File

@@ -9,7 +9,6 @@ import {
QuerySpec, QuerySpec,
UserConfig, UserConfig,
} from "./config/db-config"; } from "./config/db-config";
import { Feature } from "./feature-flags";
import { RepositoryPropertyName } from "./feature-flags/properties"; import { RepositoryPropertyName } from "./feature-flags/properties";
import { BuiltInLanguage, parseBuiltInLanguage } from "./languages"; import { BuiltInLanguage, parseBuiltInLanguage } from "./languages";
import { BundlePlatform } from "./platform"; import { BundlePlatform } from "./platform";
@@ -139,14 +138,10 @@ export interface PerLanguageBundleOptions {
} }
/** Returns the eligible bundle language, or undefined for the combined bundle. */ /** Returns the eligible bundle language, or undefined for the combined bundle. */
export async function getPerLanguageBundleLanguage( export function getPerLanguageBundleLanguage(
{ action: ActionState<["Logger", "ReadOnlyEnv"]>,
env,
features,
logger,
}: ActionState<["Logger", "ReadOnlyEnv", "FeatureFlags"]>,
options: PerLanguageBundleOptions, options: PerLanguageBundleOptions,
): Promise<BuiltInLanguage | undefined> { ): BuiltInLanguage | undefined {
const { const {
rawLanguages, rawLanguages,
otherLanguagePacksReason, otherLanguagePacksReason,
@@ -158,14 +153,12 @@ export async function getPerLanguageBundleLanguage(
} = options; } = options;
const explain = (reason: string) => { const explain = (reason: string) => {
logger.debug(`Not using a per-language CodeQL bundle since ${reason}.`); action.logger.debug(
`Not using a per-language CodeQL bundle since ${reason}.`,
);
return undefined; return undefined;
}; };
if (!(await features.getValue(Feature.PerLanguageBundles))) {
return explain("the feature is disabled");
}
// A defined reason means the CodeQL CLI may need packs for other languages, for example because // A defined reason means the CodeQL CLI may need packs for other languages, for example because
// of the configured queries. That applies whichever languages were requested, so check it first // of the configured queries. That applies whichever languages were requested, so check it first
// to avoid suggesting that requesting a single language would be enough. // to avoid suggesting that requesting a single language would be enough.
@@ -197,7 +190,7 @@ export async function getPerLanguageBundleLanguage(
return explain(`we are running against ${variant}`); return explain(`we are running against ${variant}`);
} }
if (!isGitHubHostedRunner(env)) { if (!isGitHubHostedRunner(action.env)) {
// Per-language installs stay out of the toolcache; self-hosted runners should retain // Per-language installs stay out of the toolcache; self-hosted runners should retain
// the reusable combined bundle instead. // the reusable combined bundle instead.
return explain("the job is not running on a GitHub-hosted runner"); return explain("the job is not running on a GitHub-hosted runner");

View File

@@ -439,7 +439,7 @@ test.serial(
tmpDir, tmpDir,
GitHubVariant.DOTCOM, GitHubVariant.DOTCOM,
SAMPLE_DEFAULT_CLI_VERSION, SAMPLE_DEFAULT_CLI_VERSION,
["javascript"], undefined, // rawLanguages
undefined, // otherLanguagePacksReason undefined, // otherLanguagePacksReason
false, // useOverlayAwareDefaultCliVersion false, // useOverlayAwareDefaultCliVersion
features, features,
@@ -633,7 +633,7 @@ for (const toolsInput of ["nightly", "nightly-latest"]) {
SAMPLE_DOTCOM_API_DETAILS, SAMPLE_DOTCOM_API_DETAILS,
GitHubVariant.DOTCOM, GitHubVariant.DOTCOM,
true, // tarSupportsZstd true, // tarSupportsZstd
createFeatures([Feature.PerLanguageBundles]), createFeatures([]),
new RecordingLogger(), new RecordingLogger(),
); );
@@ -664,24 +664,16 @@ test.serial(
await withTmpDir(async (tmpDir) => { await withTmpDir(async (tmpDir) => {
setupActionsVars(tmpDir, tmpDir); setupActionsVars(tmpDir, tmpDir);
for (const { languages, otherLanguagePacksReason, features } of [ for (const { languages, otherLanguagePacksReason } of [
// The per-language feature is disabled.
{
languages: ["java"],
otherLanguagePacksReason: undefined,
features: createFeatures([]),
},
// More than one language requires a combined bundle. // More than one language requires a combined bundle.
{ {
languages: ["java", "python"], languages: ["java", "python"],
otherLanguagePacksReason: undefined, otherLanguagePacksReason: undefined,
features: createFeatures([Feature.PerLanguageBundles]),
}, },
// The configured queries may need library packs for other languages. // The configured queries may need library packs for other languages.
{ {
languages: ["java"], languages: ["java"],
otherLanguagePacksReason: "an example reason", otherLanguagePacksReason: "an example reason",
features: createFeatures([Feature.PerLanguageBundles]),
}, },
]) { ]) {
const source = await setupCodeql.getCodeQLSource( const source = await setupCodeql.getCodeQLSource(
@@ -693,7 +685,7 @@ test.serial(
SAMPLE_DOTCOM_API_DETAILS, SAMPLE_DOTCOM_API_DETAILS,
GitHubVariant.DOTCOM, GitHubVariant.DOTCOM,
true, // tarSupportsZstd true, // tarSupportsZstd
features, createFeatures([]),
new RecordingLogger(), new RecordingLogger(),
); );
@@ -709,58 +701,48 @@ test.serial(
}, },
); );
for (const perLanguageBundles of [false, true]) { test.serial(
test.serial( "getCodeQLSource uses the latest per-language bundle for a forced nightly",
`getCodeQLSource uses the latest ${perLanguageBundles ? "per-language" : "combined"} bundle for a forced nightly`, async (t) => {
async (t) => { const expectedTag = "codeql-bundle-30260213";
const expectedTag = "codeql-bundle-30260213"; const baseURL = `https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/${expectedTag}`;
const baseURL = `https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/${expectedTag}`; const latestNightlyRequest = stubHostedNightly(expectedTag);
const latestNightlyRequest = stubHostedNightly(expectedTag);
await withTmpDir(async (tmpDir) => { await withTmpDir(async (tmpDir) => {
setupActionsVars(tmpDir, tmpDir, { GITHUB_EVENT_NAME: "dynamic" }); setupActionsVars(tmpDir, tmpDir, { GITHUB_EVENT_NAME: "dynamic" });
const source = await setupCodeql.getCodeQLSource( const source = await setupCodeql.getCodeQLSource(
undefined, // toolsInput: the nightly is selected by ForceNightly undefined, // toolsInput: the nightly is selected by ForceNightly
SAMPLE_DEFAULT_CLI_VERSION, SAMPLE_DEFAULT_CLI_VERSION,
["java"], ["java"],
undefined, // otherLanguagePacksReason undefined, // otherLanguagePacksReason
false, // useOverlayAwareDefaultCliVersion false, // useOverlayAwareDefaultCliVersion
SAMPLE_DOTCOM_API_DETAILS, SAMPLE_DOTCOM_API_DETAILS,
GitHubVariant.DOTCOM, GitHubVariant.DOTCOM,
true, // tarSupportsZstd true, // tarSupportsZstd
createFeatures( createFeatures([Feature.ForceNightly]),
perLanguageBundles new RecordingLogger(),
? [Feature.ForceNightly, Feature.PerLanguageBundles] );
: [Feature.ForceNightly],
),
new RecordingLogger(),
);
t.is(source.sourceType, "download"); t.is(source.sourceType, "download");
t.true(latestNightlyRequest.calledOnce); t.true(latestNightlyRequest.calledOnce);
if (source.sourceType === "download") { if (source.sourceType === "download") {
const combinedURL = `${baseURL}/codeql-bundle-linux64.tar.zst`; t.deepEqual(source.bundle, {
t.deepEqual( kind: "per-language",
source.bundle, language: BuiltInLanguage.java,
perLanguageBundles url: `${baseURL}/codeql-bundle-java-linux64.tar.zst`,
? { combinedBundleURL: `${baseURL}/codeql-bundle-linux64.tar.zst`,
kind: "per-language", });
language: BuiltInLanguage.java, }
url: `${baseURL}/codeql-bundle-java-linux64.tar.zst`, });
combinedBundleURL: combinedURL, },
} );
: { kind: "combined", url: combinedURL },
);
}
});
},
);
}
for (const date of ["20200101", "30260213"]) { for (const date of ["20200101", "30260213"]) {
for (const bundle of ["combined", "per-language"] as const) { for (const bundle of ["combined", "per-language"] as const) {
test.serial( test.serial(
`getCodeQLSource preserves an explicit ${bundle} nightly URL for ${date}`, `getCodeQLSource preserves an explicit ${bundle} nightly URL for ${date}${
bundle === "per-language" ? " on GHES" : ""
}`,
async (t) => { async (t) => {
const latestNightlyRequest = stubHostedNightly( const latestNightlyRequest = stubHostedNightly(
"codeql-bundle-30260213", "codeql-bundle-30260213",
@@ -770,7 +752,9 @@ for (const date of ["20200101", "30260213"]) {
? "codeql-bundle-linux64.tar.zst" ? "codeql-bundle-linux64.tar.zst"
: "codeql-bundle-java-linux64.tar.zst"; : "codeql-bundle-java-linux64.tar.zst";
const url = `https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-${date}/${asset}`; const url = `https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-${date}/${asset}`;
const features = createFeatures([Feature.PerLanguageBundles]); const features = createFeatures([]);
const variant =
bundle === "per-language" ? GitHubVariant.GHES : GitHubVariant.DOTCOM;
const logger = getRecordingLogger([], { logToConsole: false }); const logger = getRecordingLogger([], { logToConsole: false });
const error = new HTTPError("Not Found", 404); const error = new HTTPError("Not Found", 404);
const extractStub = sinon const extractStub = sinon
@@ -786,7 +770,7 @@ for (const date of ["20200101", "30260213"]) {
undefined, // otherLanguagePacksReason undefined, // otherLanguagePacksReason
false, false,
SAMPLE_DOTCOM_API_DETAILS, SAMPLE_DOTCOM_API_DETAILS,
GitHubVariant.DOTCOM, variant,
true, true,
features, features,
logger, logger,
@@ -808,7 +792,7 @@ for (const date of ["20200101", "30260213"]) {
url, url,
SAMPLE_DOTCOM_API_DETAILS, SAMPLE_DOTCOM_API_DETAILS,
tmpDir, tmpDir,
GitHubVariant.DOTCOM, variant,
SAMPLE_DEFAULT_CLI_VERSION, SAMPLE_DEFAULT_CLI_VERSION,
["java"], ["java"],
undefined, // otherLanguagePacksReason undefined, // otherLanguagePacksReason
@@ -1262,7 +1246,7 @@ test.serial(
SAMPLE_DOTCOM_API_DETAILS, SAMPLE_DOTCOM_API_DETAILS,
GitHubVariant.DOTCOM, GitHubVariant.DOTCOM,
true, // tarSupportsZstd true, // tarSupportsZstd
createFeatures([Feature.PerLanguageBundles]), createFeatures([]),
new RecordingLogger(), new RecordingLogger(),
); );
@@ -1295,13 +1279,16 @@ test.serial(
await withTmpDir(async (tmpDir) => { await withTmpDir(async (tmpDir) => {
setupActionsVars(tmpDir, tmpDir); setupActionsVars(tmpDir, tmpDir);
for (const { otherLanguagePacksReason, features } of [ for (const { otherLanguagePacksReason, variant } of [
// The per-language feature is disabled. // Automatic per-language selection is limited to GitHub.com.
{ otherLanguagePacksReason: undefined, features: createFeatures([]) }, {
otherLanguagePacksReason: undefined,
variant: GitHubVariant.GHES,
},
// The configured queries may need library packs for other languages. // The configured queries may need library packs for other languages.
{ {
otherLanguagePacksReason: "an example reason", otherLanguagePacksReason: "an example reason",
features: createFeatures([Feature.PerLanguageBundles]), variant: GitHubVariant.DOTCOM,
}, },
]) { ]) {
const source = await setupCodeql.getCodeQLSource( const source = await setupCodeql.getCodeQLSource(
@@ -1311,9 +1298,9 @@ test.serial(
otherLanguagePacksReason, otherLanguagePacksReason,
false, // useOverlayAwareDefaultCliVersion false, // useOverlayAwareDefaultCliVersion
SAMPLE_DOTCOM_API_DETAILS, SAMPLE_DOTCOM_API_DETAILS,
GitHubVariant.DOTCOM, variant,
true, // tarSupportsZstd true, // tarSupportsZstd
features, createFeatures([]),
new RecordingLogger(), new RecordingLogger(),
); );
@@ -1383,7 +1370,7 @@ for (const fallback of [false, true]) {
["java"], ["java"],
undefined, // otherLanguagePacksReason undefined, // otherLanguagePacksReason
false, // useOverlayAwareDefaultCliVersion false, // useOverlayAwareDefaultCliVersion
createFeatures([Feature.PerLanguageBundles]), createFeatures([]),
new RecordingLogger(), new RecordingLogger(),
); );
@@ -1463,7 +1450,7 @@ for (const bundle of ["per-language", "combined", "fallback"] as const) {
}; };
}); });
const addDiagnostic = sinon.stub(diagnostics, "addNoLanguageDiagnostic"); const addDiagnostic = sinon.stub(diagnostics, "addNoLanguageDiagnostic");
const features = createFeatures([Feature.PerLanguageBundles]); const features = createFeatures([]);
await withTmpDir(async (tmpDir) => { await withTmpDir(async (tmpDir) => {
setupActionsVars(tmpDir, tmpDir); setupActionsVars(tmpDir, tmpDir);
@@ -1648,7 +1635,7 @@ for (const error of [
["java"], ["java"],
undefined, // otherLanguagePacksReason undefined, // otherLanguagePacksReason
false, // useOverlayAwareDefaultCliVersion false, // useOverlayAwareDefaultCliVersion
createFeatures([Feature.PerLanguageBundles]), createFeatures([]),
new RecordingLogger(), new RecordingLogger(),
), ),
{ is: error }, { is: error },

View File

@@ -364,7 +364,7 @@ export async function getCodeQLSource(
); );
} }
bundle = await getLatestNightlyBundle( bundle = await getLatestNightlyBundle(
{ env: getEnv(), features, logger }, { env: getEnv(), logger },
rawLanguages, rawLanguages,
otherLanguagePacksReason, otherLanguagePacksReason,
variant, variant,
@@ -605,17 +605,14 @@ export async function getCodeQLSource(
const action = { env: getEnv(), logger }; const action = { env: getEnv(), logger };
const platform = getBundlePlatform(); const platform = getBundlePlatform();
const perLanguageBundleLanguage = await getPerLanguageBundleLanguage( const perLanguageBundleLanguage = getPerLanguageBundleLanguage(action, {
{ ...action, features }, rawLanguages,
{ otherLanguagePacksReason,
rawLanguages, cliVersion,
otherLanguagePacksReason, compressionMethod,
cliVersion, platform,
compressionMethod, variant,
platform, });
variant,
},
);
// Resolves the combined or per-language bundle URL for the requested release. // Resolves the combined or per-language bundle URL for the requested release.
const resolveBundleURL = (language?: BuiltInLanguage) => const resolveBundleURL = (language?: BuiltInLanguage) =>
@@ -1043,7 +1040,7 @@ function getTempExtractionDir(tempDir: string) {
* Records the combined bundle URL from that release for use if the selected asset is missing. * Records the combined bundle URL from that release for use if the selected asset is missing.
*/ */
async function getLatestNightlyBundle( async function getLatestNightlyBundle(
action: ActionState<["Logger", "ReadOnlyEnv", "FeatureFlags"]>, action: ActionState<["Logger", "ReadOnlyEnv"]>,
rawLanguages: string[] | undefined, rawLanguages: string[] | undefined,
otherLanguagePacksReason: string | undefined, otherLanguagePacksReason: string | undefined,
variant: util.GitHubVariant, variant: util.GitHubVariant,
@@ -1059,7 +1056,7 @@ async function getLatestNightlyBundle(
: "gzip"; : "gzip";
const platform = getBundlePlatform(); const platform = getBundlePlatform();
const language = await getPerLanguageBundleLanguage(action, { const language = getPerLanguageBundleLanguage(action, {
rawLanguages, rawLanguages,
otherLanguagePacksReason, otherLanguagePacksReason,
cliVersion: undefined, cliVersion: undefined,