diff --git a/.github/workflows/__export-file-baseline-information.yml b/.github/workflows/__export-file-baseline-information.yml index 803e508c67..fabddabb1b 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -43,7 +43,7 @@ jobs: with: version: ${{ matrix.version }} - uses: swift-actions/setup-swift@5cdaa9161ad1f55ae39a5ea1784ef96de72f95d9 - if: "!startsWith(matrix.os, 'windows')" + if: runner.os != 'Windows' with: swift-version: 5.7.1 - uses: ./../action/init diff --git a/.github/workflows/__ml-powered-queries.yml b/.github/workflows/__ml-powered-queries.yml index 6441e8e9d9..4b6367ee6c 100644 --- a/.github/workflows/__ml-powered-queries.yml +++ b/.github/workflows/__ml-powered-queries.yml @@ -87,8 +87,7 @@ jobs: - name: Check sarif uses: ./../action/.github/check-sarif # Running on Windows requires CodeQL CLI 2.9.0+. - if: "!(matrix.version == 'stable-20220120' && (matrix.os == 'windows-latest'\ - \ || matrix.os == 'windows-2019'))" + if: "!(matrix.version == 'stable-20220120' && runner.os == 'Windows')" with: 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 @@ -98,7 +97,7 @@ jobs: env: # Running on Windows requires CodeQL CLI 2.9.0+. SHOULD_RUN_ML_POWERED_QUERIES: ${{ !(matrix.version == 'stable-20220120' && - (matrix.os == 'windows-latest' || matrix.os == 'windows-2019')) }} + runner.os == 'Windows') }} shell: bash run: | echo "Expecting ML-powered queries to be run: ${SHOULD_RUN_ML_POWERED_QUERIES}" diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index b09ea642d8..d9ee25402c 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -66,7 +66,7 @@ jobs: with: go-version: ^1.13.1 - uses: swift-actions/setup-swift@5cdaa9161ad1f55ae39a5ea1784ef96de72f95d9 - if: "!startsWith(matrix.os, 'windows')" + if: runner.os != 'Windows' with: swift-version: 5.7.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index e59d5404c4..2270d87b57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## [UNRELEASED] +- Update default CodeQL bundle version to 2.11.4. [#1391](https://github.com/github/codeql-action/pull/1391) - Fixed a bug where some the `init` action and the `analyze` action would have different sets of experimental feature flags enabled. [#1384](https://github.com/github/codeql-action/pull/1384) ## 2.1.33 - 16 Nov 2022 diff --git a/lib/api-compatibility.json b/lib/api-compatibility.json index 73d77986ea..120901cf22 100644 --- a/lib/api-compatibility.json +++ b/lib/api-compatibility.json @@ -1 +1 @@ -{ "maximumVersion": "3.7", "minimumVersion": "3.3" } +{ "maximumVersion": "3.8", "minimumVersion": "3.3" } diff --git a/lib/defaults.json b/lib/defaults.json index 39a5dd80e8..0f32e5d5ff 100644 --- a/lib/defaults.json +++ b/lib/defaults.json @@ -1,3 +1,3 @@ { - "bundleVersion": "codeql-bundle-20221105" + "bundleVersion": "codeql-bundle-20221123" } diff --git a/lib/util.js b/lib/util.js index 7dd7623bf6..832342829b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -545,7 +545,7 @@ async function checkActionVersion(version) { githubVersion.type === GitHubVariant.GHAE || (githubVersion.type === GitHubVariant.GHES && semver.satisfies((_a = semver.coerce(githubVersion.version)) !== null && _a !== void 0 ? _a : "0.0.0", ">=3.4"))) { - core.warning("CodeQL Action v1 will be deprecated on December 7th, 2022. Please upgrade to v2. For " + + core.warning("CodeQL Action v1 will be deprecated on January 18th, 2023. Please upgrade to v2. For " + "more information, see " + "https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/"); } diff --git a/pr-checks/checks/export-file-baseline-information.yml b/pr-checks/checks/export-file-baseline-information.yml index 3f580b7368..1339d4b509 100644 --- a/pr-checks/checks/export-file-baseline-information.yml +++ b/pr-checks/checks/export-file-baseline-information.yml @@ -3,7 +3,7 @@ description: "Tests that file baseline information is exported when the feature versions: ["nightly-latest"] steps: - uses: swift-actions/setup-swift@5cdaa9161ad1f55ae39a5ea1784ef96de72f95d9 - if: "!startsWith(matrix.os, 'windows')" + if: runner.os != 'Windows' with: swift-version: "5.7.1" - uses: ./../action/init diff --git a/pr-checks/checks/ml-powered-queries.yml b/pr-checks/checks/ml-powered-queries.yml index 0e439b4080..d0628b32cc 100644 --- a/pr-checks/checks/ml-powered-queries.yml +++ b/pr-checks/checks/ml-powered-queries.yml @@ -30,7 +30,7 @@ steps: - name: Check sarif uses: ./../action/.github/check-sarif # Running on Windows requires CodeQL CLI 2.9.0+. - if: "!(matrix.version == 'stable-20220120' && (matrix.os == 'windows-latest' || matrix.os == 'windows-2019'))" + if: "!(matrix.version == 'stable-20220120' && runner.os == 'Windows')" with: 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 @@ -39,7 +39,7 @@ steps: - name: Check results env: # Running on Windows requires CodeQL CLI 2.9.0+. - SHOULD_RUN_ML_POWERED_QUERIES: ${{ !(matrix.version == 'stable-20220120' && (matrix.os == 'windows-latest' || matrix.os == 'windows-2019')) }} + SHOULD_RUN_ML_POWERED_QUERIES: ${{ !(matrix.version == 'stable-20220120' && runner.os == 'Windows') }} shell: bash run: | echo "Expecting ML-powered queries to be run: ${SHOULD_RUN_ML_POWERED_QUERIES}" diff --git a/pr-checks/checks/multi-language-autodetect.yml b/pr-checks/checks/multi-language-autodetect.yml index e04f387f66..7d9a14cb7a 100644 --- a/pr-checks/checks/multi-language-autodetect.yml +++ b/pr-checks/checks/multi-language-autodetect.yml @@ -5,7 +5,7 @@ env: CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA. steps: - uses: swift-actions/setup-swift@5cdaa9161ad1f55ae39a5ea1784ef96de72f95d9 - if: "!startsWith(matrix.os, 'windows')" + if: runner.os != 'Windows' with: swift-version: "5.7.1" diff --git a/src/api-compatibility.json b/src/api-compatibility.json index cb77fa450d..22672f336c 100644 --- a/src/api-compatibility.json +++ b/src/api-compatibility.json @@ -1 +1 @@ -{"maximumVersion": "3.7", "minimumVersion": "3.3"} +{"maximumVersion": "3.8", "minimumVersion": "3.3"} diff --git a/src/defaults.json b/src/defaults.json index 25f11946b2..a83d15c8d7 100644 --- a/src/defaults.json +++ b/src/defaults.json @@ -1,3 +1,3 @@ { - "bundleVersion": "codeql-bundle-20221105" + "bundleVersion": "codeql-bundle-20221123" } diff --git a/src/util.ts b/src/util.ts index f958e77ffd..8e8dfeeb8a 100644 --- a/src/util.ts +++ b/src/util.ts @@ -651,7 +651,7 @@ export async function checkActionVersion(version: string) { )) ) { core.warning( - "CodeQL Action v1 will be deprecated on December 7th, 2022. Please upgrade to v2. For " + + "CodeQL Action v1 will be deprecated on January 18th, 2023. Please upgrade to v2. For " + "more information, see " + "https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/" );