From c18ac175eaf59aa289e80475772a81b7f7326217 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 Nov 2026 07:53:42 +0000 Subject: [PATCH 1/2] chore(deps): bump the docker-main-minor-patch group with 2 updates Bumps the docker-main-minor-patch group with 2 updates: trufflesecurity/trufflehog and python. Updates `trufflesecurity/trufflehog` from 3.99.8 to 3.99.9 Updates `python` from 3.12-slim to 3.15-slim --- updated-dependencies: - dependency-name: trufflesecurity/trufflehog dependency-version: 3.99.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: docker-main-minor-patch - dependency-name: python dependency-version: 3.15-slim dependency-type: direct:production dependency-group: docker-main-minor-patch ... Signed-off-by: dependabot[bot] --- Dockerfile | 6 +++--- Dockerfile.heavy | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b7bfde..61a3449 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ ARG TRIVY_IMAGE=ghcr.io/socketdev/trivy:0.76.1@sha256:883da3593a60e311b2ed87c3a5 FROM ${TRIVY_IMAGE} AS trivy # ─── Stage: trufflehog ──────────────────────────────────────────────────────── -FROM trufflesecurity/trufflehog:3.99.8 AS trufflehog +FROM trufflesecurity/trufflehog:3.99.9 AS trufflehog # ─── Stage: uv ──────────────────────────────────────────────────────────────── # Named stage required — COPY --from does not support ARG variable expansion. @@ -39,7 +39,7 @@ FROM ghcr.io/astral-sh/uv:0.13.7 AS uv # ─── Stage: opengrep-installer ──────────────────────────────────────────────── # OpenGrep does not publish an official Docker image with a stable binary path, # so we install via their official script in a dedicated build stage. -FROM python:3.12-slim AS opengrep-installer +FROM python:3.15-slim AS opengrep-installer ARG OPENGREP_VERSION RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ @@ -49,7 +49,7 @@ RUN curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install. | bash -s -- -v "${OPENGREP_VERSION}" # ─── Stage: runtime ─────────────────────────────────────────────────────────── -FROM python:3.12-slim AS runtime +FROM python:3.15-slim AS runtime WORKDIR /socket-basics diff --git a/Dockerfile.heavy b/Dockerfile.heavy index 4a544cd..6c497b5 100644 --- a/Dockerfile.heavy +++ b/Dockerfile.heavy @@ -10,10 +10,10 @@ ARG SOCKET_PYTHON_CLI_VERSION=2.12.0 ARG TRIVY_IMAGE=ghcr.io/socketdev/trivy:0.76.1@sha256:883da3593a60e311b2ed87c3a55241051b27bba15ffc3ce041ae570cd0f00915 FROM ${TRIVY_IMAGE} AS trivy -FROM trufflesecurity/trufflehog:3.99.8 AS trufflehog +FROM trufflesecurity/trufflehog:3.99.9 AS trufflehog FROM ghcr.io/astral-sh/uv:0.13.7 AS uv -FROM python:3.12-slim AS opengrep-installer +FROM python:3.15-slim AS opengrep-installer ARG OPENGREP_VERSION RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ @@ -22,7 +22,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ RUN curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh \ | bash -s -- -v "${OPENGREP_VERSION}" -FROM python:3.12-slim AS runtime +FROM python:3.15-slim AS runtime WORKDIR /socket-basics From 897cdb2cc86a2cb00f2f422cff86e600c315318e Mon Sep 17 00:00:00 2001 From: lelia <2418071+lelia@users.noreply.github.com> Date: Fri, 20 Nov 2026 17:21:27 -0500 Subject: [PATCH 2/2] chore(deps): keep the images on Python 3.12 and finish the trufflehog bump Dependabot grouped python 3.12 -> 3.15 as a minor update. uv.lock has no cp315 wheel for rpds-py, so the build compiled it from source and failed for want of a C linker in the slim image. - Dockerfile, Dockerfile.heavy: back to python:3.12-slim. - dependabot.yml: ignore python minor updates in both docker entries. - Bring the TRUFFLEHOG_VERSION label ARG and the install docs to 3.99.9, which the FROM-only bump left at 3.99.8. - python-tests: run on Dockerfile and dependabot.yml changes, so the pin tests see the files they read. --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/python-tests.yml | 6 ++++++ Dockerfile | 6 +++--- Dockerfile.heavy | 6 +++--- docs/local-install-docker.md | 2 +- docs/local-installation.md | 10 +++++----- 6 files changed, 29 insertions(+), 12 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1282e12..34bcd93 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -66,6 +66,13 @@ updates: - dependency-name: "python" - dependency-name: "ghcr.io/astral-sh/uv" - dependency-name: "trufflesecurity/trufflehog" + # Python minors move by hand. Each one (3.12 -> 3.13) is a new language + # release, and uv.lock has to carry wheels for it first: without them the + # build compiles from source and the slim image has no C toolchain. The + # floating python:-slim tag picks up patch releases on every build. + ignore: + - dependency-name: "python" + update-types: ["version-update:semver-minor"] groups: docker-main-minor-patch: patterns: @@ -101,6 +108,10 @@ updates: - dependency-name: "node" - dependency-name: "ghcr.io/astral-sh/uv" - dependency-name: "trufflesecurity/trufflehog" + # Python minors move by hand; see the note on the root entry. + ignore: + - dependency-name: "python" + update-types: ["version-update:semver-minor"] groups: docker-app-tests-minor-patch: patterns: diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index d0fb8fa..49d7109 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -16,6 +16,9 @@ on: - "scripts/check_release_docs.py" - "scripts/prep_release.py" - "scripts/sync_release_version.py" + - "Dockerfile*" + - "app_tests/Dockerfile" + - ".github/dependabot.yml" - ".github/workflows/python-tests.yml" pull_request: paths: @@ -31,6 +34,9 @@ on: - "scripts/check_release_docs.py" - "scripts/prep_release.py" - "scripts/sync_release_version.py" + - "Dockerfile*" + - "app_tests/Dockerfile" + - ".github/dependabot.yml" - ".github/workflows/python-tests.yml" workflow_dispatch: diff --git a/Dockerfile b/Dockerfile index 61a3449..3be1088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,7 +39,7 @@ FROM ghcr.io/astral-sh/uv:0.13.7 AS uv # ─── Stage: opengrep-installer ──────────────────────────────────────────────── # OpenGrep does not publish an official Docker image with a stable binary path, # so we install via their official script in a dedicated build stage. -FROM python:3.15-slim AS opengrep-installer +FROM python:3.12-slim AS opengrep-installer ARG OPENGREP_VERSION RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ @@ -49,7 +49,7 @@ RUN curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install. | bash -s -- -v "${OPENGREP_VERSION}" # ─── Stage: runtime ─────────────────────────────────────────────────────────── -FROM python:3.15-slim AS runtime +FROM python:3.12-slim AS runtime WORKDIR /socket-basics @@ -104,7 +104,7 @@ ARG OPENGREP_VERSION # Mirrors the trufflehog FROM tag above. A literal FROM tag cannot be read back # into an ARG, so this is the one pin stated twice; # tests/test_dockerfile_pins.py fails if the two ever disagree. -ARG TRUFFLEHOG_VERSION=3.99.8 +ARG TRUFFLEHOG_VERSION=3.99.9 ARG SOCKET_NPM_CLI_VERSION LABEL org.opencontainers.image.title="Socket Basics" \ org.opencontainers.image.source="https://github.com/SocketDev/socket-basics" \ diff --git a/Dockerfile.heavy b/Dockerfile.heavy index 6c497b5..85d5486 100644 --- a/Dockerfile.heavy +++ b/Dockerfile.heavy @@ -13,7 +13,7 @@ FROM ${TRIVY_IMAGE} AS trivy FROM trufflesecurity/trufflehog:3.99.9 AS trufflehog FROM ghcr.io/astral-sh/uv:0.13.7 AS uv -FROM python:3.15-slim AS opengrep-installer +FROM python:3.12-slim AS opengrep-installer ARG OPENGREP_VERSION RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ @@ -22,7 +22,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ RUN curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh \ | bash -s -- -v "${OPENGREP_VERSION}" -FROM python:3.15-slim AS runtime +FROM python:3.12-slim AS runtime WORKDIR /socket-basics @@ -73,7 +73,7 @@ ARG VCS_REF=unknown ARG BUILD_DATE=unknown ARG OPENGREP_VERSION # Mirrors the trufflehog FROM tag above; see the note in ./Dockerfile. -ARG TRUFFLEHOG_VERSION=3.99.8 +ARG TRUFFLEHOG_VERSION=3.99.9 ARG SOCKET_NPM_CLI_VERSION ARG SOCKET_PYTHON_CLI_VERSION LABEL org.opencontainers.image.title="Socket Basics Heavy" \ diff --git a/docs/local-install-docker.md b/docs/local-install-docker.md index 5e930c1..95d78a7 100644 --- a/docs/local-install-docker.md +++ b/docs/local-install-docker.md @@ -50,7 +50,7 @@ docker inspect ghcr.io/socketdev/socket-basics:3.5.0 \ | jq '.[0].Config.Labels' # { # "com.socket.trivy-version": "0.76.1", -# "com.socket.trufflehog-version": "3.99.8", +# "com.socket.trufflehog-version": "3.99.9", # "com.socket.opengrep-version": "v1.33.1", # "org.opencontainers.image.version": "3.5.0", # ... diff --git a/docs/local-installation.md b/docs/local-installation.md index 598a56e..c28b577 100644 --- a/docs/local-installation.md +++ b/docs/local-installation.md @@ -289,16 +289,16 @@ OpenGrep works with the bundled Socket Basics SAST rules. No additional configur brew install trufflehog # Using Docker (alternative; pin explicitly — Docker Hub tags have no "v" prefix): -docker pull trufflesecurity/trufflehog:3.99.8 +docker pull trufflesecurity/trufflehog:3.99.9 # Manual installation (Linux): -wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.99.8/trufflehog_3.99.8_linux_amd64.tar.gz -tar -xzf trufflehog_3.99.8_linux_amd64.tar.gz +wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.99.9/trufflehog_3.99.9_linux_amd64.tar.gz +tar -xzf trufflehog_3.99.9_linux_amd64.tar.gz sudo mv trufflehog /usr/local/bin/ # Manual installation (macOS): -wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.99.8/trufflehog_3.99.8_darwin_arm64.tar.gz -tar -xzf trufflehog_3.99.8_darwin_arm64.tar.gz +wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.99.9/trufflehog_3.99.9_darwin_arm64.tar.gz +tar -xzf trufflehog_3.99.9_darwin_arm64.tar.gz sudo mv trufflehog /usr/local/bin/ # Verify installation