Update CodeQL releases used in PR checks
This commit is contained in:
parent
d13d683355
commit
6ef37003ca
39 changed files with 469 additions and 240 deletions
12
.github/setup-swift/action.yml
vendored
12
.github/setup-swift/action.yml
vendored
|
|
@ -1,18 +1,18 @@
|
||||||
name: "Set up Swift"
|
name: "Set up Swift"
|
||||||
description: Performs necessary steps to set up appropriate Swift version.
|
description: Sets up an appropriate Swift version if Swift is enabled via CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT.
|
||||||
inputs:
|
inputs:
|
||||||
codeql-path:
|
codeql-path:
|
||||||
|
description: Path to the CodeQL CLI executable.
|
||||||
required: true
|
required: true
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Get Swift version
|
- name: Get Swift version
|
||||||
id: get_swift_version
|
id: get_swift_version
|
||||||
# We don't support Swift on Windows or prior versions of CLI.
|
if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true'
|
||||||
if: "(runner.os != 'Windows') && (matrix.version == 'cached' || matrix.version == 'latest' || matrix.version == 'nightly-latest')"
|
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
CODEQL_PATH: ${{inputs.codeql-path}}
|
CODEQL_PATH: ${{ inputs.codeql-path }}
|
||||||
run: |
|
run: |
|
||||||
if [ $RUNNER_OS = "macOS" ]; then
|
if [ $RUNNER_OS = "macOS" ]; then
|
||||||
PLATFORM="osx64"
|
PLATFORM="osx64"
|
||||||
|
|
@ -27,6 +27,6 @@ runs:
|
||||||
fi
|
fi
|
||||||
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
|
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
|
||||||
- uses: swift-actions/setup-swift@da0e3e04b5e3e15dbc3861bd835ad9f0afe56296 # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test.
|
- uses: swift-actions/setup-swift@da0e3e04b5e3e15dbc3861bd835ad9f0afe56296 # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test.
|
||||||
if: "(runner.os != 'Windows') && (matrix.version == 'cached' || matrix.version == 'latest' || matrix.version == 'nightly-latest')"
|
if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true'
|
||||||
with:
|
with:
|
||||||
swift-version: "${{steps.get_swift_version.outputs.version}}"
|
swift-version: "${{ steps.get_swift_version.outputs.version }}"
|
||||||
|
|
|
||||||
43
.github/workflows/__analyze-ref-input.yml
generated
vendored
43
.github/workflows/__analyze-ref-input.yml
generated
vendored
|
|
@ -25,24 +25,30 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -72,11 +78,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|
|
||||||
8
.github/workflows/__autobuild-action.yml
generated
vendored
8
.github/workflows/__autobuild-action.yml
generated
vendored
|
|
@ -42,6 +42,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: csharp
|
languages: csharp
|
||||||
|
|
|
||||||
8
.github/workflows/__config-export.yml
generated
vendored
8
.github/workflows/__config-export.yml
generated
vendored
|
|
@ -48,6 +48,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: javascript
|
languages: javascript
|
||||||
|
|
|
||||||
8
.github/workflows/__diagnostics-export.yml
generated
vendored
8
.github/workflows/__diagnostics-export.yml
generated
vendored
|
|
@ -48,6 +48,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
10
.github/workflows/__export-file-baseline-information.yml
generated
vendored
10
.github/workflows/__export-file-baseline-information.yml
generated
vendored
|
|
@ -42,12 +42,21 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- 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 }}
|
||||||
env:
|
env:
|
||||||
|
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: true
|
||||||
CODEQL_FILE_BASELINE_INFORMATION: true
|
CODEQL_FILE_BASELINE_INFORMATION: true
|
||||||
- uses: ./../action/.github/setup-swift
|
- uses: ./../action/.github/setup-swift
|
||||||
with:
|
with:
|
||||||
|
|
@ -84,5 +93,4 @@ jobs:
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
env:
|
env:
|
||||||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: true # Remove when Swift is GA.
|
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
|
|
|
||||||
8
.github/workflows/__extractor-ram-threads.yml
generated
vendored
8
.github/workflows/__extractor-ram-threads.yml
generated
vendored
|
|
@ -38,6 +38,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: java
|
languages: java
|
||||||
|
|
|
||||||
43
.github/workflows/__go-custom-queries.yml
generated
vendored
43
.github/workflows/__go-custom-queries.yml
generated
vendored
|
|
@ -25,24 +25,30 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -72,11 +78,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: go
|
languages: go
|
||||||
|
|
|
||||||
33
.github/workflows/__go-tracing-autobuilder.yml
generated
vendored
33
.github/workflows/__go-tracing-autobuilder.yml
generated
vendored
|
|
@ -25,18 +25,22 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -60,11 +64,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: go
|
languages: go
|
||||||
|
|
|
||||||
33
.github/workflows/__go-tracing-custom-build-steps.yml
generated
vendored
33
.github/workflows/__go-tracing-custom-build-steps.yml
generated
vendored
|
|
@ -25,18 +25,22 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -60,11 +64,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: go
|
languages: go
|
||||||
|
|
|
||||||
33
.github/workflows/__go-tracing-legacy-workflow.yml
generated
vendored
33
.github/workflows/__go-tracing-legacy-workflow.yml
generated
vendored
|
|
@ -25,18 +25,22 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -60,11 +64,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: go
|
languages: go
|
||||||
|
|
|
||||||
8
.github/workflows/__init-with-registries.yml
generated
vendored
8
.github/workflows/__init-with-registries.yml
generated
vendored
|
|
@ -54,6 +54,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- name: Init with registries
|
- name: Init with registries
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
8
.github/workflows/__javascript-source-root.yml
generated
vendored
8
.github/workflows/__javascript-source-root.yml
generated
vendored
|
|
@ -42,6 +42,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- name: Move codeql-action
|
- name: Move codeql-action
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
45
.github/workflows/__ml-powered-queries.yml
generated
vendored
45
.github/workflows/__ml-powered-queries.yml
generated
vendored
|
|
@ -25,12 +25,30 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-latest
|
||||||
version: stable-20220120
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220120
|
version: stable-20220401
|
||||||
- os: windows-2019
|
- os: windows-latest
|
||||||
version: stable-20220120
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -60,11 +78,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: javascript
|
languages: javascript
|
||||||
|
|
@ -87,7 +108,7 @@ jobs:
|
||||||
- name: Check sarif
|
- name: Check sarif
|
||||||
uses: ./../action/.github/check-sarif
|
uses: ./../action/.github/check-sarif
|
||||||
# Running on Windows requires CodeQL CLI 2.9.0+.
|
# Running on Windows requires CodeQL CLI 2.9.0+.
|
||||||
if: "!(matrix.version == 'stable-20220120' && runner.os == 'Windows')"
|
if: "!(matrix.version == 'stable-20220401' && runner.os == 'Windows')"
|
||||||
with:
|
with:
|
||||||
sarif-file: ${{ runner.temp }}/results/javascript.sarif
|
sarif-file: ${{ runner.temp }}/results/javascript.sarif
|
||||||
queries-run: js/ml-powered/nosql-injection,js/ml-powered/path-injection,js/ml-powered/sql-injection,js/ml-powered/xss
|
queries-run: js/ml-powered/nosql-injection,js/ml-powered/path-injection,js/ml-powered/sql-injection,js/ml-powered/xss
|
||||||
|
|
@ -96,7 +117,7 @@ jobs:
|
||||||
- name: Check results
|
- name: Check results
|
||||||
env:
|
env:
|
||||||
# Running on Windows requires CodeQL CLI 2.9.0+.
|
# Running on Windows requires CodeQL CLI 2.9.0+.
|
||||||
SHOULD_RUN_ML_POWERED_QUERIES: ${{ !(matrix.version == 'stable-20220120' &&
|
SHOULD_RUN_ML_POWERED_QUERIES: ${{ !(matrix.version == 'stable-20220401' &&
|
||||||
runner.os == 'Windows') }}
|
runner.os == 'Windows') }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
40
.github/workflows/__multi-language-autodetect.yml
generated
vendored
40
.github/workflows/__multi-language-autodetect.yml
generated
vendored
|
|
@ -25,18 +25,22 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -60,11 +64,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
with:
|
with:
|
||||||
|
|
@ -119,8 +126,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Check language autodetect for Ruby
|
- name: Check language autodetect for Ruby
|
||||||
if: (matrix.version == 'cached' || matrix.version == 'latest' || matrix.version
|
if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true'
|
||||||
== 'nightly-latest')
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
RUBY_DB=${{ fromJson(steps.analysis.outputs.db-locations).ruby }}
|
RUBY_DB=${{ fromJson(steps.analysis.outputs.db-locations).ruby }}
|
||||||
|
|
@ -130,8 +136,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Check language autodetect for Swift
|
- name: Check language autodetect for Swift
|
||||||
if: (matrix.version == 'cached' || matrix.version == 'latest' || matrix.version
|
if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true'
|
||||||
== 'nightly-latest')
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }}
|
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }}
|
||||||
|
|
@ -140,5 +145,4 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: 'true' # Remove when Swift is GA.
|
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
|
|
|
||||||
8
.github/workflows/__packaging-codescanning-config-inputs-js.yml
generated
vendored
8
.github/workflows/__packaging-codescanning-config-inputs-js.yml
generated
vendored
|
|
@ -54,6 +54,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: .github/codeql/codeql-config-packaging3.yml
|
config-file: .github/codeql/codeql-config-packaging3.yml
|
||||||
|
|
|
||||||
8
.github/workflows/__packaging-config-inputs-js.yml
generated
vendored
8
.github/workflows/__packaging-config-inputs-js.yml
generated
vendored
|
|
@ -54,6 +54,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: .github/codeql/codeql-config-packaging3.yml
|
config-file: .github/codeql/codeql-config-packaging3.yml
|
||||||
|
|
|
||||||
8
.github/workflows/__packaging-config-js.yml
generated
vendored
8
.github/workflows/__packaging-config-js.yml
generated
vendored
|
|
@ -54,6 +54,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: .github/codeql/codeql-config-packaging.yml
|
config-file: .github/codeql/codeql-config-packaging.yml
|
||||||
|
|
|
||||||
8
.github/workflows/__packaging-inputs-js.yml
generated
vendored
8
.github/workflows/__packaging-inputs-js.yml
generated
vendored
|
|
@ -54,6 +54,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: .github/codeql/codeql-config-packaging2.yml
|
config-file: .github/codeql/codeql-config-packaging2.yml
|
||||||
|
|
|
||||||
43
.github/workflows/__remote-config.yml
generated
vendored
43
.github/workflows/__remote-config.yml
generated
vendored
|
|
@ -25,24 +25,30 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -72,11 +78,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|
|
||||||
8
.github/workflows/__rubocop-multi-language.yml
generated
vendored
8
.github/workflows/__rubocop-multi-language.yml
generated
vendored
|
|
@ -38,6 +38,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
8
.github/workflows/__ruby.yml
generated
vendored
8
.github/workflows/__ruby.yml
generated
vendored
|
|
@ -48,6 +48,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: ruby
|
languages: ruby
|
||||||
|
|
|
||||||
8
.github/workflows/__split-workflow.yml
generated
vendored
8
.github/workflows/__split-workflow.yml
generated
vendored
|
|
@ -48,6 +48,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: .github/codeql/codeql-config-packaging3.yml
|
config-file: .github/codeql/codeql-config-packaging3.yml
|
||||||
|
|
|
||||||
8
.github/workflows/__submit-sarif-failure.yml
generated
vendored
8
.github/workflows/__submit-sarif-failure.yml
generated
vendored
|
|
@ -42,6 +42,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./init
|
- uses: ./init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
9
.github/workflows/__swift-autobuild.yml
generated
vendored
9
.github/workflows/__swift-autobuild.yml
generated
vendored
|
|
@ -42,6 +42,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
with:
|
with:
|
||||||
|
|
@ -68,5 +76,4 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: 'true' # Remove when Swift is GA.
|
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
|
|
|
||||||
9
.github/workflows/__swift-custom-build.yml
generated
vendored
9
.github/workflows/__swift-custom-build.yml
generated
vendored
|
|
@ -48,6 +48,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
with:
|
with:
|
||||||
|
|
@ -75,6 +83,5 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: 'true' # Remove when Swift is GA.
|
|
||||||
DOTNET_GENERATE_ASPNET_CERTIFICATE: 'false'
|
DOTNET_GENERATE_ASPNET_CERTIFICATE: 'false'
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
|
|
|
||||||
8
.github/workflows/__test-autobuild-working-dir.yml
generated
vendored
8
.github/workflows/__test-autobuild-working-dir.yml
generated
vendored
|
|
@ -38,6 +38,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
8
.github/workflows/__test-local-codeql.yml
generated
vendored
8
.github/workflows/__test-local-codeql.yml
generated
vendored
|
|
@ -38,6 +38,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- name: Fetch a CodeQL bundle
|
- name: Fetch a CodeQL bundle
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
8
.github/workflows/__test-proxy.yml
generated
vendored
8
.github/workflows/__test-proxy.yml
generated
vendored
|
|
@ -38,6 +38,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
- name: Set environment variable for Swift enablement
|
||||||
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: javascript
|
languages: javascript
|
||||||
|
|
|
||||||
23
.github/workflows/__unset-environment.yml
generated
vendored
23
.github/workflows/__unset-environment.yml
generated
vendored
|
|
@ -25,12 +25,14 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
|
|
@ -48,11 +50,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
db-location: ${{ runner.temp }}/customDbLocation
|
db-location: ${{ runner.temp }}/customDbLocation
|
||||||
|
|
|
||||||
43
.github/workflows/__upload-ref-sha-input.yml
generated
vendored
43
.github/workflows/__upload-ref-sha-input.yml
generated
vendored
|
|
@ -25,24 +25,30 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -72,11 +78,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|
|
||||||
43
.github/workflows/__with-checkout-path.yml
generated
vendored
43
.github/workflows/__with-checkout-path.yml
generated
vendored
|
|
@ -25,24 +25,30 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: windows-2019
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: windows-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -72,11 +78,14 @@ jobs:
|
||||||
uses: ./.github/prepare-test
|
uses: ./.github/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Set up Go
|
- name: Set environment variable for Swift enablement
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'
|
if: "\n runner.os != 'Windows' && (\n matrix.version\
|
||||||
uses: actions/setup-go@v4
|
\ == '20220908' ||\n matrix.version == '20221211' ||\n\
|
||||||
with:
|
\ matrix.version == 'cached' ||\n matrix.version\
|
||||||
go-version: ^1.13.1
|
\ == 'latest' ||\n matrix.version == 'nightly-latest'\n\
|
||||||
|
\ )\n "
|
||||||
|
shell: bash
|
||||||
|
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: 474bbf07f9247ffe1856c6a0f94aeeb10e7afee6
|
ref: 474bbf07f9247ffe1856c6a0f94aeeb10e7afee6
|
||||||
|
|
|
||||||
31
.github/workflows/debug-artifacts.yml
vendored
31
.github/workflows/debug-artifacts.yml
vendored
|
|
@ -22,18 +22,22 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20211005
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20211005
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
version: stable-20220120
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20220120
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20220401
|
version: stable-20220401
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220615
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20220908
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-20221211
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-20221211
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
|
@ -84,17 +88,10 @@ jobs:
|
||||||
- name: Check expected artifacts exist
|
- name: Check expected artifacts exist
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
VERSIONS="stable-20211005 stable-20220120 stable-20220401 cached latest nightly-latest"
|
VERSIONS="stable-20220401 stable-20220615 stable-20220908 stable-20221211 cached latest nightly-latest"
|
||||||
LANGUAGES="cpp csharp go java javascript python"
|
LANGUAGES="cpp csharp go java javascript python"
|
||||||
for version in $VERSIONS; do
|
for version in $VERSIONS; do
|
||||||
if [[ "$version" =~ stable-(20211005|20220120|20210809) ]]; then
|
for os in ubuntu-latest macos-latest; do
|
||||||
# Note the absence of the period in "ubuntu-2004": this is present in the image name
|
|
||||||
# but not the artifact name
|
|
||||||
OPERATING_SYSTEMS="ubuntu-2004 macos-latest"
|
|
||||||
else
|
|
||||||
OPERATING_SYSTEMS="ubuntu-latest macos-latest"
|
|
||||||
fi
|
|
||||||
for os in $OPERATING_SYSTEMS; do
|
|
||||||
pushd "./my-debug-artifacts-$os-$version"
|
pushd "./my-debug-artifacts-$os-$version"
|
||||||
echo "Artifacts from version $version on $os:"
|
echo "Artifacts from version $version on $os:"
|
||||||
for language in $LANGUAGES; do
|
for language in $LANGUAGES; do
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
name: "Export file baseline information"
|
name: "Export file baseline information"
|
||||||
description: "Tests that file baseline information is exported when the feature is enabled"
|
description: "Tests that file baseline information is exported when the feature is enabled"
|
||||||
versions: ["nightly-latest"]
|
versions: ["nightly-latest"]
|
||||||
env:
|
|
||||||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: true # Remove when Swift is GA.
|
|
||||||
steps:
|
steps:
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
|
|
@ -10,6 +8,7 @@ steps:
|
||||||
languages: javascript
|
languages: javascript
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
env:
|
env:
|
||||||
|
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: true
|
||||||
CODEQL_FILE_BASELINE_INFORMATION: true
|
CODEQL_FILE_BASELINE_INFORMATION: true
|
||||||
- uses: ./../action/.github/setup-swift
|
- uses: ./../action/.github/setup-swift
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,5 @@
|
||||||
name: "ML-powered queries"
|
name: "ML-powered queries"
|
||||||
description: "Tests that ML-powered queries are run with the security-extended suite and that they produce alerts on a test DB"
|
description: "Tests that ML-powered queries are run with the security-extended suite and that they produce alerts on a test DB"
|
||||||
versions: [
|
|
||||||
# Latest release in 2.7.x series
|
|
||||||
"stable-20220120",
|
|
||||||
"cached",
|
|
||||||
"latest",
|
|
||||||
"nightly-latest",
|
|
||||||
]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|
@ -30,7 +23,7 @@ steps:
|
||||||
- name: Check sarif
|
- name: Check sarif
|
||||||
uses: ./../action/.github/check-sarif
|
uses: ./../action/.github/check-sarif
|
||||||
# Running on Windows requires CodeQL CLI 2.9.0+.
|
# Running on Windows requires CodeQL CLI 2.9.0+.
|
||||||
if: "!(matrix.version == 'stable-20220120' && runner.os == 'Windows')"
|
if: "!(matrix.version == 'stable-20220401' && runner.os == 'Windows')"
|
||||||
with:
|
with:
|
||||||
sarif-file: ${{ runner.temp }}/results/javascript.sarif
|
sarif-file: ${{ runner.temp }}/results/javascript.sarif
|
||||||
queries-run: js/ml-powered/nosql-injection,js/ml-powered/path-injection,js/ml-powered/sql-injection,js/ml-powered/xss
|
queries-run: js/ml-powered/nosql-injection,js/ml-powered/path-injection,js/ml-powered/sql-injection,js/ml-powered/xss
|
||||||
|
|
@ -39,7 +32,7 @@ steps:
|
||||||
- name: Check results
|
- name: Check results
|
||||||
env:
|
env:
|
||||||
# Running on Windows requires CodeQL CLI 2.9.0+.
|
# Running on Windows requires CodeQL CLI 2.9.0+.
|
||||||
SHOULD_RUN_ML_POWERED_QUERIES: ${{ !(matrix.version == 'stable-20220120' && runner.os == 'Windows') }}
|
SHOULD_RUN_ML_POWERED_QUERIES: ${{ !(matrix.version == 'stable-20220401' && runner.os == 'Windows') }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "Expecting ML-powered queries to be run: ${SHOULD_RUN_ML_POWERED_QUERIES}"
|
echo "Expecting ML-powered queries to be run: ${SHOULD_RUN_ML_POWERED_QUERIES}"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
name: "Multi-language repository"
|
name: "Multi-language repository"
|
||||||
description: "An end-to-end integration test of a multi-language repository using automatic language detection"
|
description: "An end-to-end integration test of a multi-language repository using automatic language detection"
|
||||||
operatingSystems: ["ubuntu", "macos"]
|
operatingSystems: ["ubuntu", "macos"]
|
||||||
env:
|
|
||||||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA.
|
|
||||||
steps:
|
steps:
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
|
|
@ -58,7 +56,7 @@ steps:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Check language autodetect for Ruby
|
- name: Check language autodetect for Ruby
|
||||||
if: "(matrix.version == 'cached' || matrix.version == 'latest' || matrix.version == 'nightly-latest')"
|
if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
RUBY_DB=${{ fromJson(steps.analysis.outputs.db-locations).ruby }}
|
RUBY_DB=${{ fromJson(steps.analysis.outputs.db-locations).ruby }}
|
||||||
|
|
@ -68,7 +66,7 @@ steps:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Check language autodetect for Swift
|
- name: Check language autodetect for Swift
|
||||||
if: "(matrix.version == 'cached' || matrix.version == 'latest' || matrix.version == 'nightly-latest')"
|
if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }}
|
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ description: "Tests creation of a Swift database using autobuild"
|
||||||
versions: ["latest", "cached", "nightly-latest"]
|
versions: ["latest", "cached", "nightly-latest"]
|
||||||
# Swift autobuilder is only supported on MacOS for private beta
|
# Swift autobuilder is only supported on MacOS for private beta
|
||||||
operatingSystems: ["macos"]
|
operatingSystems: ["macos"]
|
||||||
env:
|
|
||||||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA.
|
|
||||||
steps:
|
steps:
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ description: "Tests creation of a Swift database using custom build"
|
||||||
versions: ["latest", "cached", "nightly-latest"]
|
versions: ["latest", "cached", "nightly-latest"]
|
||||||
operatingSystems: ["ubuntu", "macos"]
|
operatingSystems: ["ubuntu", "macos"]
|
||||||
env:
|
env:
|
||||||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA.
|
|
||||||
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
||||||
steps:
|
steps:
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,14 @@ import os
|
||||||
|
|
||||||
# The default set of CodeQL Bundle versions to use for the PR checks.
|
# The default set of CodeQL Bundle versions to use for the PR checks.
|
||||||
defaultTestVersions = [
|
defaultTestVersions = [
|
||||||
# The oldest supported CodeQL version: 2.6.3. If bumping, update `CODEQL_MINIMUM_VERSION` in `codeql.ts`
|
# The oldest supported CodeQL version: 2.8.5. If bumping, update `CODEQL_MINIMUM_VERSION` in `codeql.ts`
|
||||||
"stable-20211005",
|
|
||||||
# The last CodeQL release in the 2.7 series: 2.7.6.
|
|
||||||
"stable-20220120",
|
|
||||||
# The last CodeQL release in the 2.8 series: 2.8.5.
|
|
||||||
"stable-20220401",
|
"stable-20220401",
|
||||||
|
# The last CodeQL release in the 2.9 series: 2.9.6.
|
||||||
|
"stable-20220615",
|
||||||
|
# The last CodeQL release in the 2.10 series: 2.10.6.
|
||||||
|
"stable-20220908",
|
||||||
|
# The last CodeQL release in the 2.11 series: 2.11.6.
|
||||||
|
"stable-20221211",
|
||||||
# The version of CodeQL currently in the toolcache. Typically either the latest release or the one before.
|
# The version of CodeQL currently in the toolcache. Typically either the latest release or the one before.
|
||||||
"cached",
|
"cached",
|
||||||
# The latest release of CodeQL.
|
# The latest release of CodeQL.
|
||||||
|
|
@ -18,22 +20,6 @@ defaultTestVersions = [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def isCompatibleWithLatestImages(version):
|
|
||||||
if version in ["cached", "latest", "nightly-latest"]:
|
|
||||||
return True
|
|
||||||
date = version.split("-")[1]
|
|
||||||
# The first version of the CodeQL CLI compatible with `ubuntu-22.04` and `windows-2022` is
|
|
||||||
# 2.8.2. This appears in CodeQL Bundle version codeql-bundle-20220224.
|
|
||||||
return date >= "20220224"
|
|
||||||
|
|
||||||
|
|
||||||
def operatingSystemsForVersion(version):
|
|
||||||
if isCompatibleWithLatestImages(version):
|
|
||||||
return ["ubuntu-latest", "macos-latest", "windows-latest"]
|
|
||||||
else:
|
|
||||||
return ["ubuntu-20.04", "macos-latest", "windows-2019"]
|
|
||||||
|
|
||||||
|
|
||||||
header = """# Warning: This file is generated automatically, and should not be modified.
|
header = """# Warning: This file is generated automatically, and should not be modified.
|
||||||
# Instead, please modify the template in the pr-checks directory and run:
|
# Instead, please modify the template in the pr-checks directory and run:
|
||||||
# pip install ruamel.yaml && python3 sync.py
|
# pip install ruamel.yaml && python3 sync.py
|
||||||
|
|
@ -60,7 +46,7 @@ for file in os.listdir('checks'):
|
||||||
|
|
||||||
matrix = []
|
matrix = []
|
||||||
for version in checkSpecification.get('versions', defaultTestVersions):
|
for version in checkSpecification.get('versions', defaultTestVersions):
|
||||||
runnerImages = operatingSystemsForVersion(version)
|
runnerImages = ["ubuntu-latest", "macos-latest", "windows-latest"]
|
||||||
if checkSpecification.get('operatingSystems', None):
|
if checkSpecification.get('operatingSystems', None):
|
||||||
runnerImages = [image for image in runnerImages for operatingSystem in checkSpecification['operatingSystems']
|
runnerImages = [image for image in runnerImages for operatingSystem in checkSpecification['operatingSystems']
|
||||||
if image.startswith(operatingSystem)]
|
if image.startswith(operatingSystem)]
|
||||||
|
|
@ -83,19 +69,24 @@ for file in os.listdir('checks'):
|
||||||
'with': {
|
'with': {
|
||||||
'version': '${{ matrix.version }}'
|
'version': '${{ matrix.version }}'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
# We don't support Swift on Windows or prior versions of the CLI.
|
||||||
|
{
|
||||||
|
'name': 'Set environment variable for Swift enablement',
|
||||||
|
'if': '''
|
||||||
|
runner.os != 'Windows' && (
|
||||||
|
matrix.version == '20220908' ||
|
||||||
|
matrix.version == '20221211' ||
|
||||||
|
matrix.version == 'cached' ||
|
||||||
|
matrix.version == 'latest' ||
|
||||||
|
matrix.version == 'nightly-latest'
|
||||||
|
)
|
||||||
|
''',
|
||||||
|
'shell': 'bash',
|
||||||
|
'run': 'echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV'
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
if any(not isCompatibleWithLatestImages(m['version']) for m in matrix):
|
|
||||||
steps.append({
|
|
||||||
'name': 'Set up Go',
|
|
||||||
'if': "matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2019'",
|
|
||||||
'uses': 'actions/setup-go@v4',
|
|
||||||
'with': {
|
|
||||||
'go-version': '^1.13.1'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
steps.extend(checkSpecification['steps'])
|
steps.extend(checkSpecification['steps'])
|
||||||
|
|
||||||
checkJob = {
|
checkJob = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue