Skip to content
Merged
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
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [Unreleased]

## [2.2.1] - 2026-07-30

### Fixed

- Fixed TruffleHog secret scanning when `trufflehog_exclude_dir` is configured:
all entries now pass through one filter file and are honored for changed-file
and explicit-file scans. Previously, configured values could be interpreted
as filter filenames and fail or alter scans.
- Added glob-pattern support for exclusions such as
`**/appsettings.*.json`, with matching anchored beneath the workspace and
root-relative globs kept distinct from recursive `**` globs.
- Normalized exclusion entries before pattern generation so dot segments and
repeated path separators behave consistently.
- Fixed exclusion matching when the configured workspace is the filesystem root.
- Normalized in-workspace TruffleHog finding paths relative to the workspace so
host paths do not appear in facts and component identifiers remain stable
across runs, working directories, and operating systems.

## [2.2.0] - 2026-07-29

### Added
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author: "Socket"

runs:
using: "docker"
image: "docker://ghcr.io/socketdev/socket-basics:2.2.0"
image: "docker://ghcr.io/socketdev/socket-basics:2.2.1"
env:
# Core GitHub variables (these are automatically available, but we explicitly pass GITHUB_TOKEN)
GITHUB_TOKEN: ${{ inputs.github_token }}
Expand Down Expand Up @@ -428,7 +428,7 @@ inputs:
required: false
default: "false"
trufflehog_exclude_dir:
description: "Comma-separated list of directories to exclude from secret scanning"
description: "Comma-separated literal directory/file names or glob patterns to exclude from secret scanning beneath the workspace root; matching is case-sensitive"
required: false
default: ""
trufflehog_show_unverified:
Expand Down
4 changes: 3 additions & 1 deletion docs/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ socket-basics --disable-secrets
```

### `--exclude-dir EXCLUDE_DIR`
Comma-separated list of directories to exclude from secret scanning.
Comma-separated literal directory/file names or glob patterns to exclude from
secret scanning beneath the workspace root. Matching is case-sensitive. For
example, `**/appsettings.*.json` matches files at any directory depth.

**Example:**
```bash
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "socket_basics"
version = "2.2.0"
version = "2.2.1"
description = "Socket Basics with integrated SAST, secret scanning, and container analysis"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion socket_basics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .socket_basics import SecurityScanner, main
from .core.config import load_config_from_env, Config

__version__ = "2.2.0"
__version__ = "2.2.1"
__author__ = "Socket.dev"
__email__ = "support@socket.dev"

Expand Down
2 changes: 1 addition & 1 deletion socket_basics/connectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ connectors:
- trufflehog_show_unverified
- name: trufflehog_exclude_dir
option: --exclude-dir
description: "Comma-separated list of directories to exclude from secret scanning"
description: "Comma-separated literal directory/file names or glob patterns to exclude from secret scanning beneath the workspace root; matching is case-sensitive"
env_variable: INPUT_TRUFFLEHOG_EXCLUDE_DIR
type: str
default: ""
Expand Down
Loading