Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- Socket Python SDK (`socketdev`) 3.6.2 -> 3.6.3, which Socket Python CLI
2.13.2 pins exactly. Source installs now require `socketdev>=3.6.3`.

### Fixed
- Trivy Dockerfile findings retain their file and line range in facts and PR
comments. Each occurrence gets its own PR row.
- `trivy_disabled_rules` suppresses matching Dockerfile rules and vulnerability
IDs in notifications and CI gating. Facts retain the findings as ignored.

## [3.5.0] - 2026-11-13

Minor rather than patch: Socket Tier 1 parses `socket_additional_params`
Expand Down
8 changes: 6 additions & 2 deletions docs/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,14 @@ socket-basics --images "nginx:1.27.4" --trivy-notify console
```

### `--trivy-disabled-rules TRIVY_DISABLED_RULES`
Comma-separated list of Trivy rules to disable.

**Example:**
Comma-separated list of Trivy Dockerfile rule IDs or vulnerability IDs. Matching
findings stay in `.socket.facts.json` with `action: ignore` and
`actionReason: disabled_rule`. Basics omits them from notifications and excludes
them when deciding whether the scan fails.

```bash
socket-basics --dockerfiles Dockerfile --trivy-disabled-rules "DS-0029"
socket-basics --images "nginx:1.27.4" --trivy-disabled-rules "CVE-2023-1234,CVE-2023-5678"
```

Expand Down
2 changes: 1 addition & 1 deletion socket_basics/core/connector/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _normalize_alert(a: Dict[str, Any], connector: Any | None = None, default_ge
'php_disabled_rules', 'ruby_disabled_rules', 'csharp_disabled_rules',
'dotnet_disabled_rules', 'c_disabled_rules', 'cpp_disabled_rules',
'swift_disabled_rules', 'rust_disabled_rules', 'elixir_disabled_rules',
'erlang_disabled_rules', 'trivy_disabled_rules'
'erlang_disabled_rules'
]
for param in disabled_rule_params:
try:
Expand Down
Loading