mirror of
https://github.com/github/codeql-action.git
synced 2025-12-06 07:48:17 +08:00
Warn if the add-snippets input is used
This commit is contained in:
@@ -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
5
lib/analyze-action.js
generated
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user