Skip to content

Commit 777daa0

Browse files
authored
Merge pull request #3239 from github/mbg/remove/add-snippets
Remove `add-snippets` input
2 parents 34c50c1 + 74c8748 commit 777daa0

19 files changed

+27
-69
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
44

55
## [UNRELEASED]
66

7-
No user facing changes.
7+
- The `add-snippets` input has been removed from the `analyze` action. This input has been deprecated since CodeQL Action 3.26.4 in August 2024 when this removal was announced.
88

99
## 4.31.0 - 24 Oct 2025
1010

analyze/action.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,10 @@ inputs:
3232
and 13GB for macOS).
3333
required: false
3434
add-snippets:
35-
description: Specify whether or not to add code snippets to the output sarif file.
35+
description: Does not have any effect.
3636
required: false
37-
default: "false"
3837
deprecationMessage: >-
39-
The input "add-snippets" is deprecated and will be removed on the first release in August 2025.
40-
When this input is set to true it is expected to add code snippets with an alert to the SARIF file.
41-
However, since Code Scanning ignores code snippets provided as part of a SARIF file this is currently
42-
a no operation. No alternative is available.
38+
The input "add-snippets" has been removed and no longer has any effect.
4339
skip-queries:
4440
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.
4541
required: false

lib/analyze-action-post.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js

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

lib/autobuild-action.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/resolve-environment-action.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/setup-codeql-action.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)