Skip to content

Commit 3b10402

Browse files
committed
Warn if the add-snippets input is used
1 parent db47d17 commit 3b10402

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

analyze/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ inputs:
3131
memory available in the system (which for GitHub-hosted runners is 6GB for Linux, 5.5GB for Windows,
3232
and 13GB for macOS).
3333
required: false
34+
add-snippets:
35+
description: Does not have any effect.
36+
required: false
37+
default: "false"
38+
deprecationMessage: >-
39+
The input "add-snippets" is has been removed and no longer has any effect.
3440
skip-queries:
3541
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.
3642
required: false

lib/analyze-action.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,13 @@ async function run() {
324324
);
325325

326326
if (actionsUtil.getRequiredInput("skip-queries") !== "true") {
327+
// Warn if the removed `add-snippets` input is used.
328+
if (actionsUtil.getOptionalInput("add-snippets") !== undefined) {
329+
logger.warning(
330+
"The `add-snippets` input has been removed and no longer has any effect.",
331+
);
332+
}
333+
327334
runStats = await runQueries(
328335
outputDir,
329336
memory,

0 commit comments

Comments
 (0)