Skip to content

Commit ae01f80

Browse files
authored
Merge pull request github#2436 from rvermeulen/rvermeulen/deprecate-add-snippets
Deprecate `add-snippets` input.
2 parents 202b3b9 + 72bc3f7 commit ae01f80

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Note that the only difference between `v2` and `v3` of the CodeQL Action is the
66

77
## [UNRELEASED]
88

9+
- _Deprecation:_ The `add-snippets` input on the `analyze` Action is deprecated and will be removed in the first release in August 2025. [#2436](https://github.com/github/codeql-action/pull/2436)
910
- Fix an issue where the disk usage system call used for telemetry would fail on MacOS ARM machines with System Integrity Protection disabled, and then surface a warning. The system call is now disabled for these machines. [#2434](https://github.com/github/codeql-action/pull/2434)
1011

1112
## 3.26.3 - 19 Aug 2024

analyze/action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ inputs:
3434
description: Specify whether or not to add code snippets to the output sarif file.
3535
required: false
3636
default: "false"
37+
deprecationMessage: >-
38+
The input "add-snippets" is deprecated and will be removed on the first release in August 2025.
39+
When this input is set to true it is expected to add code snippets with an alert to the SARIF file.
40+
However, since Code Scanning ignores code snippets provided as part of a SARIF file this is currently
41+
a no operation. No alternative is available.
3742
skip-queries:
3843
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.
3944
required: false

0 commit comments

Comments
 (0)