Warn if the add-snippets input is used

This commit is contained in:
Michael B. Gale
2025-10-29 09:28:51 +00:00
parent db47d17142
commit 4ae68afd84
3 changed files with 17 additions and 0 deletions

View File

@@ -31,6 +31,11 @@ inputs:
memory available in the system (which for GitHub-hosted runners is 6GB for Linux, 5.5GB for Windows,
and 13GB for macOS).
required: false
add-snippets:
description: Does not have any effect.
required: false
deprecationMessage: >-
The input "add-snippets" is has been removed and no longer has any effect.
skip-queries:
description: If this option is set, the CodeQL database will be built but no queries will be run on it. Thus, no results will be produced.
required: false

5
lib/analyze-action.js generated
View File

@@ -96388,6 +96388,11 @@ async function run() {
logger
);
if (getRequiredInput("skip-queries") !== "true") {
if (getOptionalInput("add-snippets") !== void 0) {
logger.warning(
"The `add-snippets` input has been removed and no longer has any effect."
);
}
runStats = await runQueries(
outputDir,
memory,

View File

@@ -324,6 +324,13 @@ async function run() {
);
if (actionsUtil.getRequiredInput("skip-queries") !== "true") {
// Warn if the removed `add-snippets` input is used.
if (actionsUtil.getOptionalInput("add-snippets") !== undefined) {
logger.warning(
"The `add-snippets` input has been removed and no longer has any effect.",
);
}
runStats = await runQueries(
outputDir,
memory,