Skip to content

Commit 69d6d2c

Browse files
committed
Change Feature.ArtifactV4Upgrade default to true
1 parent 3ef4c08 commit 69d6d2c

16 files changed

+21
-20
lines changed

.github/workflows/__config-export.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__diagnostics-export.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__export-file-baseline-information.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__job-run-uuid-sarif.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__zstd-bundle-streaming.yml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__zstd-bundle.yml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Note that the only difference between `v2` and `v3` of the CodeQL Action is the
66

77
## [UNRELEASED]
88

9+
- _Breaking change_: Debug artifacts when not running under GitHub Enterprise Server are uploaded in a manner compatible with `actions/download-artifact@v4` instead of `actions/download-artifact@v3`.
910
- The CodeQL Action now downloads bundles compressed using Zstandard on GitHub Enterprise Server when using Linux or macOS runners. This speeds up the installation of the CodeQL tools. This feature is already available to GitHub.com users. [#2573](https://github.com/github/codeql-action/pull/2573)
1011
- Update default CodeQL bundle version to 2.19.3. [#2576](https://github.com/github/codeql-action/pull/2576)
1112

@@ -31,7 +32,7 @@ No user facing changes.
3132

3233
- _Upcoming breaking change_: Add support for using `actions/download-artifact@v4` to programmatically consume CodeQL Action debug artifacts.
3334

34-
Starting November 30, 2024, GitHub.com customers will [no longer be able to use `actions/download-artifact@v3`](https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/). Therefore, to avoid breakage, customers who programmatically download the CodeQL Action debug artifacts should set the `CODEQL_ACTION_ARTIFACT_V4_UPGRADE` environment variable to `true` and bump `actions/download-artifact@v3` to `actions/download-artifact@v4` in their workflows. The CodeQL Action will enable this behavior by default in early November and workflows that have not yet bumped to `actions/download-artifact@v3` to `actions/download-artifact@v4` will begin failing then.
35+
Starting November 30, 2024, GitHub.com customers will [no longer be able to use `actions/download-artifact@v4`](https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/). Therefore, to avoid breakage, customers who programmatically download the CodeQL Action debug artifacts should set the `CODEQL_ACTION_ARTIFACT_V4_UPGRADE` environment variable to `true` and bump `actions/download-artifact@v4` to `actions/download-artifact@v4` in their workflows. The CodeQL Action will enable this behavior by default in early November and workflows that have not yet bumped to `actions/download-artifact@v4` to `actions/download-artifact@v4` will begin failing then.
3536

3637
This change is currently unavailable for GitHub Enterprise Server customers, as `actions/upload-artifact@v4` and `actions/download-artifact@v4` are not yet compatible with GHES.
3738
- Update default CodeQL bundle version to 2.19.1. [#2519](https://github.com/github/codeql-action/pull/2519)

lib/feature-flags.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/feature-flags.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/config-export.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
output: "${{ runner.temp }}/results"
1313
upload-database: false
1414
- name: Upload SARIF
15-
uses: actions/upload-artifact@v3
15+
uses: actions/upload-artifact@v4
1616
with:
1717
name: config-export-${{ matrix.os }}-${{ matrix.version }}.sarif.json
1818
path: "${{ runner.temp }}/results/javascript.sarif"

pr-checks/checks/diagnostics-export.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ steps:
2626
output: "${{ runner.temp }}/results"
2727
upload-database: false
2828
- name: Upload SARIF
29-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
3030
with:
3131
name: diagnostics-export-${{ matrix.os }}-${{ matrix.version }}.sarif.json
3232
path: "${{ runner.temp }}/results/javascript.sarif"

pr-checks/checks/export-file-baseline-information.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ steps:
1919
with:
2020
output: "${{ runner.temp }}/results"
2121
- name: Upload SARIF
22-
uses: actions/upload-artifact@v3
22+
uses: actions/upload-artifact@v4
2323
with:
2424
name: with-baseline-information-${{ matrix.os }}-${{ matrix.version }}.sarif.json
2525
path: "${{ runner.temp }}/results/javascript.sarif"

pr-checks/checks/job-run-uuid-sarif.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
with:
1313
output: "${{ runner.temp }}/results"
1414
- name: Upload SARIF
15-
uses: actions/upload-artifact@v3
15+
uses: actions/upload-artifact@v4
1616
with:
1717
name: ${{ matrix.os }}-${{ matrix.version }}.sarif.json
1818
path: "${{ runner.temp }}/results/javascript.sarif"

pr-checks/checks/zstd-bundle-streaming.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ steps:
2929
output: ${{ runner.temp }}/results
3030
upload-database: false
3131
- name: Upload SARIF
32-
uses: actions/upload-artifact@v3
32+
uses: actions/upload-artifact@v4
3333
with:
34-
name: zstd-bundle.sarif
34+
name: ${{ matrix.os }}-zstd-bundle.sarif
3535
path: ${{ runner.temp }}/results/javascript.sarif
3636
retention-days: 7
3737
- name: Check diagnostic with expected tools URL appears in SARIF

pr-checks/checks/zstd-bundle.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ steps:
2929
output: ${{ runner.temp }}/results
3030
upload-database: false
3131
- name: Upload SARIF
32-
uses: actions/upload-artifact@v3
32+
uses: actions/upload-artifact@v4
3333
with:
34-
name: zstd-bundle.sarif
34+
name: ${{ matrix.os }}-zstd-bundle.sarif
3535
path: ${{ runner.temp }}/results/javascript.sarif
3636
retention-days: 7
3737
- name: Check diagnostic with expected tools URL appears in SARIF

src/feature-flags.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const featureConfig: Record<
9393
}
9494
> = {
9595
[Feature.ArtifactV4Upgrade]: {
96-
defaultValue: false,
96+
defaultValue: true,
9797
envVar: "CODEQL_ACTION_ARTIFACT_V4_UPGRADE",
9898
minimumVersion: undefined,
9999
},

0 commit comments

Comments
 (0)