You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defaults to `True` (disable with `--filter_annotations=false`).
79
79
80
80
When set to `True`, annotations are added only when they apply to a line modified in the pull request (or a line immediately around it based on the git patch). When set to `False`, all annotations are added regardless of file or line.
81
+
82
+
### `--annotate_beginning`
83
+
Defaults to `True` (disable with `--annotate_beginning=false`).
84
+
85
+
When set to `True`, annotations are submitted for the start line of a finding only (rather than the full range of lines in the finding). With this set to `False`, GitHub's default of displaying annotations on the end line of a finding is used.
Copy file name to clipboardExpand all lines: main.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ func main() {
48
48
sarifPath:=flag.String("sarif_path", "", "absolute path to your sarif file")
49
49
50
50
filterAnnotations:=flag.Bool("filter_annotations", true, "filter annotations by lines found in the git patches, default true")
51
+
annotateStartLineOnly:=flag.Bool("annotate_beginning", true, "force annotations to start line of a finding (if set to false, GitHub default of end is used), default true")
0 commit comments