Skip to content

Commit 1b82588

Browse files
committed
Add config examples for different use cases
Signed-off-by: lelia <lelia@socket.dev>
1 parent 44cd7f0 commit 1b82588

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[socketcli]
2+
# Dashboard-parity style output:
3+
# - Full reachability data
4+
# - Grouped alert-level SARIF results
5+
# - Reachable-only filter
6+
reach = true
7+
sarif_scope = "full"
8+
sarif_grouping = "alert"
9+
sarif_reachability = "reachable"
10+
sarif_file = "sarif-dashboard-parity-reachable.sarif"
11+
disable_blocking = true
12+
13+
# Optional repo/workspace hints
14+
repo = "example-repo"
15+
# workspace = "example-workspace"
16+
17+
# Run example:
18+
# socketcli --config examples/config/sarif-dashboard-parity.toml --target-path .
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[socketcli]
2+
# Diff-focused CI/CD output:
3+
# - Diff scope (net-new findings)
4+
# - Reachable-only filter for SARIF in diff mode
5+
# - Blocking enabled to enforce policy in CI/CD
6+
reach = true
7+
sarif_scope = "diff"
8+
sarif_grouping = "instance"
9+
sarif_reachability = "reachable"
10+
sarif_file = "sarif-diff-reachable.sarif"
11+
strict_blocking = true
12+
13+
repo = "example-repo"
14+
15+
# Run example:
16+
# socketcli --config examples/config/sarif-diff-ci-cd.toml --target-path .
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[socketcli]
2+
# Instance-detail output:
3+
# - Full reachability data
4+
# - Instance-level SARIF rows (package/version/advisory granularity)
5+
# - Include all reachability states
6+
reach = true
7+
sarif_scope = "full"
8+
sarif_grouping = "instance"
9+
sarif_reachability = "all"
10+
sarif_file = "sarif-full-instance-all.sarif"
11+
disable_blocking = true
12+
13+
repo = "example-repo"
14+
15+
# Run example:
16+
# socketcli --config examples/config/sarif-instance-detail.toml --target-path .

0 commit comments

Comments
 (0)