diff --git a/analyze/action.yml b/analyze/action.yml index b7f2f98ac..1364d2b2f 100644 --- a/analyze/action.yml +++ b/analyze/action.yml @@ -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 diff --git a/lib/analyze-action.js b/lib/analyze-action.js index de98a418f..515382e48 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -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, diff --git a/src/analyze-action.ts b/src/analyze-action.ts index 1d8ac8ce7..ff24dd400 100644 --- a/src/analyze-action.ts +++ b/src/analyze-action.ts @@ -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,