Skip to content

Commit 6a90fd6

Browse files
chore(deps): bump trufflehog to 3.99.9 and keep the images on Python 3.12 (#142)
* 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] <support@github.com> * 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. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: lelia <2418071+lelia@users.noreply.github.com>
1 parent 90d2a40 commit 6a90fd6

6 files changed

Lines changed: 27 additions & 10 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ updates:
6666
- dependency-name: "python"
6767
- dependency-name: "ghcr.io/astral-sh/uv"
6868
- dependency-name: "trufflesecurity/trufflehog"
69+
# Python minors move by hand. Each one (3.12 -> 3.13) is a new language
70+
# release, and uv.lock has to carry wheels for it first: without them the
71+
# build compiles from source and the slim image has no C toolchain. The
72+
# floating python:<minor>-slim tag picks up patch releases on every build.
73+
ignore:
74+
- dependency-name: "python"
75+
update-types: ["version-update:semver-minor"]
6976
groups:
7077
docker-main-minor-patch:
7178
patterns:
@@ -101,6 +108,10 @@ updates:
101108
- dependency-name: "node"
102109
- dependency-name: "ghcr.io/astral-sh/uv"
103110
- dependency-name: "trufflesecurity/trufflehog"
111+
# Python minors move by hand; see the note on the root entry.
112+
ignore:
113+
- dependency-name: "python"
114+
update-types: ["version-update:semver-minor"]
104115
groups:
105116
docker-app-tests-minor-patch:
106117
patterns:

‎.github/workflows/python-tests.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
- "scripts/check_release_docs.py"
1717
- "scripts/prep_release.py"
1818
- "scripts/sync_release_version.py"
19+
- "Dockerfile*"
20+
- "app_tests/Dockerfile"
21+
- ".github/dependabot.yml"
1922
- ".github/workflows/python-tests.yml"
2023
pull_request:
2124
paths:
@@ -31,6 +34,9 @@ on:
3134
- "scripts/check_release_docs.py"
3235
- "scripts/prep_release.py"
3336
- "scripts/sync_release_version.py"
37+
- "Dockerfile*"
38+
- "app_tests/Dockerfile"
39+
- ".github/dependabot.yml"
3440
- ".github/workflows/python-tests.yml"
3541
workflow_dispatch:
3642

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ARG TRIVY_IMAGE=ghcr.io/socketdev/trivy:0.76.1@sha256:883da3593a60e311b2ed87c3a5
3030
FROM ${TRIVY_IMAGE} AS trivy
3131

3232
# ─── Stage: trufflehog ────────────────────────────────────────────────────────
33-
FROM trufflesecurity/trufflehog:3.99.8 AS trufflehog
33+
FROM trufflesecurity/trufflehog:3.99.9 AS trufflehog
3434

3535
# ─── Stage: uv ────────────────────────────────────────────────────────────────
3636
# Named stage required — COPY --from does not support ARG variable expansion.
@@ -104,7 +104,7 @@ ARG OPENGREP_VERSION
104104
# Mirrors the trufflehog FROM tag above. A literal FROM tag cannot be read back
105105
# into an ARG, so this is the one pin stated twice;
106106
# tests/test_dockerfile_pins.py fails if the two ever disagree.
107-
ARG TRUFFLEHOG_VERSION=3.99.8
107+
ARG TRUFFLEHOG_VERSION=3.99.9
108108
ARG SOCKET_NPM_CLI_VERSION
109109
LABEL org.opencontainers.image.title="Socket Basics" \
110110
org.opencontainers.image.source="https://github.com/SocketDev/socket-basics" \

‎Dockerfile.heavy‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARG SOCKET_PYTHON_CLI_VERSION=2.13.1
1010
ARG TRIVY_IMAGE=ghcr.io/socketdev/trivy:0.76.1@sha256:883da3593a60e311b2ed87c3a55241051b27bba15ffc3ce041ae570cd0f00915
1111

1212
FROM ${TRIVY_IMAGE} AS trivy
13-
FROM trufflesecurity/trufflehog:3.99.8 AS trufflehog
13+
FROM trufflesecurity/trufflehog:3.99.9 AS trufflehog
1414
FROM ghcr.io/astral-sh/uv:0.13.7 AS uv
1515

1616
FROM python:3.12-slim AS opengrep-installer
@@ -73,7 +73,7 @@ ARG VCS_REF=unknown
7373
ARG BUILD_DATE=unknown
7474
ARG OPENGREP_VERSION
7575
# Mirrors the trufflehog FROM tag above; see the note in ./Dockerfile.
76-
ARG TRUFFLEHOG_VERSION=3.99.8
76+
ARG TRUFFLEHOG_VERSION=3.99.9
7777
ARG SOCKET_NPM_CLI_VERSION
7878
ARG SOCKET_PYTHON_CLI_VERSION
7979
LABEL org.opencontainers.image.title="Socket Basics Heavy" \

‎docs/local-install-docker.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ docker inspect ghcr.io/socketdev/socket-basics:3.5.0 \
5050
| jq '.[0].Config.Labels'
5151
# {
5252
# "com.socket.trivy-version": "0.76.1",
53-
# "com.socket.trufflehog-version": "3.99.8",
53+
# "com.socket.trufflehog-version": "3.99.9",
5454
# "com.socket.opengrep-version": "v1.33.1",
5555
# "org.opencontainers.image.version": "3.5.0",
5656
# ...

‎docs/local-installation.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,16 +289,16 @@ OpenGrep works with the bundled Socket Basics SAST rules. No additional configur
289289
brew install trufflehog
290290

291291
# Using Docker (alternative; pin explicitly — Docker Hub tags have no "v" prefix):
292-
docker pull trufflesecurity/trufflehog:3.99.8
292+
docker pull trufflesecurity/trufflehog:3.99.9
293293

294294
# Manual installation (Linux):
295-
wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.99.8/trufflehog_3.99.8_linux_amd64.tar.gz
296-
tar -xzf trufflehog_3.99.8_linux_amd64.tar.gz
295+
wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.99.9/trufflehog_3.99.9_linux_amd64.tar.gz
296+
tar -xzf trufflehog_3.99.9_linux_amd64.tar.gz
297297
sudo mv trufflehog /usr/local/bin/
298298

299299
# Manual installation (macOS):
300-
wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.99.8/trufflehog_3.99.8_darwin_arm64.tar.gz
301-
tar -xzf trufflehog_3.99.8_darwin_arm64.tar.gz
300+
wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.99.9/trufflehog_3.99.9_darwin_arm64.tar.gz
301+
tar -xzf trufflehog_3.99.9_darwin_arm64.tar.gz
302302
sudo mv trufflehog /usr/local/bin/
303303

304304
# Verify installation

0 commit comments

Comments
 (0)