mirror of
https://github.com/github/codeql-action.git
synced 2025-12-06 07:48:17 +08:00
Change warning message to just v3 (exclude v1, v2).
This commit is contained in:
2
lib/analyze-action.js
generated
2
lib/analyze-action.js
generated
@@ -87420,7 +87420,7 @@ function checkActionVersion(version, githubVersion) {
|
||||
">=3.20"
|
||||
)) {
|
||||
core3.error(
|
||||
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
"CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
);
|
||||
core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true");
|
||||
}
|
||||
|
||||
2
lib/autobuild-action.js
generated
2
lib/autobuild-action.js
generated
@@ -83164,7 +83164,7 @@ function checkActionVersion(version, githubVersion) {
|
||||
">=3.20"
|
||||
)) {
|
||||
core3.error(
|
||||
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
"CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
);
|
||||
core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true");
|
||||
}
|
||||
|
||||
2
lib/init-action.js
generated
2
lib/init-action.js
generated
@@ -84741,7 +84741,7 @@ function checkActionVersion(version, githubVersion) {
|
||||
">=3.20"
|
||||
)) {
|
||||
core3.error(
|
||||
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
"CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
);
|
||||
core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true");
|
||||
}
|
||||
|
||||
2
lib/resolve-environment-action.js
generated
2
lib/resolve-environment-action.js
generated
@@ -83176,7 +83176,7 @@ function checkActionVersion(version, githubVersion) {
|
||||
">=3.20"
|
||||
)) {
|
||||
core3.error(
|
||||
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
"CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
);
|
||||
core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true");
|
||||
}
|
||||
|
||||
2
lib/setup-codeql-action.js
generated
2
lib/setup-codeql-action.js
generated
@@ -83252,7 +83252,7 @@ function checkActionVersion(version, githubVersion) {
|
||||
">=3.20"
|
||||
)) {
|
||||
core3.error(
|
||||
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
"CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
);
|
||||
core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true");
|
||||
}
|
||||
|
||||
2
lib/upload-sarif-action.js
generated
2
lib/upload-sarif-action.js
generated
@@ -86072,7 +86072,7 @@ function checkActionVersion(version, githubVersion) {
|
||||
">=3.20"
|
||||
)) {
|
||||
core3.error(
|
||||
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
"CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/"
|
||||
);
|
||||
core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true");
|
||||
}
|
||||
|
||||
@@ -489,7 +489,7 @@ for (const [
|
||||
t.true(
|
||||
warningSpy.calledOnceWithExactly(
|
||||
sinon.match(
|
||||
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated.",
|
||||
"CodeQL Action v3 will be deprecated in December 2026.",
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -1116,7 +1116,7 @@ export async function checkDiskUsage(
|
||||
/**
|
||||
* Prompt the customer to upgrade to CodeQL Action v4, if appropriate.
|
||||
*
|
||||
* Check whether a customer is running v1, v2, or v3. If they are, and we can determine that the GitHub
|
||||
* Check whether a customer is running v3. If they are, and we can determine that the GitHub
|
||||
* instance supports v4, then log an error prompting the customer to upgrade to v4.
|
||||
*/
|
||||
export function checkActionVersion(
|
||||
@@ -1142,7 +1142,7 @@ export function checkActionVersion(
|
||||
))
|
||||
) {
|
||||
core.error(
|
||||
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. " +
|
||||
"CodeQL Action v3 will be deprecated in December 2026. " +
|
||||
"Please update all occurrences of the CodeQL Action in your workflow files to v4. " +
|
||||
"For more information, see " +
|
||||
"https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/",
|
||||
|
||||
Reference in New Issue
Block a user