mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00: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,
|
memory available in the system (which for GitHub-hosted runners is 6GB for Linux, 5.5GB for Windows,
|
||||||
and 13GB for macOS).
|
and 13GB for macOS).
|
||||||
required: false
|
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:
|
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.
|
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
|
required: false
|
||||||
|
|||||||
5
lib/analyze-action.js
generated
5
lib/analyze-action.js
generated
@@ -96388,6 +96388,11 @@ async function run() {
|
|||||||
logger
|
logger
|
||||||
);
|
);
|
||||||
if (getRequiredInput("skip-queries") !== "true") {
|
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(
|
runStats = await runQueries(
|
||||||
outputDir,
|
outputDir,
|
||||||
memory,
|
memory,
|
||||||
|
|||||||
@@ -324,6 +324,13 @@ async function run() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (actionsUtil.getRequiredInput("skip-queries") !== "true") {
|
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(
|
runStats = await runQueries(
|
||||||
outputDir,
|
outputDir,
|
||||||
memory,
|
memory,
|
||||||
|
|||||||
Reference in New Issue
Block a user