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 9b7bfde..3be1088 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. @@ -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 4a544cd..85d5486 100644 --- a/Dockerfile.heavy +++ b/Dockerfile.heavy @@ -10,7 +10,7 @@ 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 @@ -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