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
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:<minor>-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:
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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" \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.heavy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion docs/local-install-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
# ...
Expand Down
10 changes: 5 additions & 5 deletions docs/local-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down