Skip to content

Commit db47d17

Browse files
committed
Remove add-snippets input
1 parent 4e0b2cd commit db47d17

19 files changed

+13
-72
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: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ 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: Specify whether or not to add code snippets to the output sarif file.
36-
required: false
37-
default: "false"
38-
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.
4334
skip-queries:
4435
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.
4536
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: 2 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)