From 1451dbcd63671299520e15a86d8bf63734aa97c3 Mon Sep 17 00:00:00 2001 From: lelia <2418071+lelia@users.noreply.github.com> Date: Tue, 17 Nov 2026 15:01:15 -0500 Subject: [PATCH] Tag `stable` on every release `stable` only moved when someone ran docker-stable.yml by hand, and it had not been run since January 2025, so the tag pointed at a CLI about ten months old. The release build now tags `stable` alongside `latest` and the version tag. docker-stable.yml stays as a manual way to point `stable` at a different release, such as rolling back. Bumps to 2.12.2. --- .github/workflows/docker-stable.yml | 2 ++ .github/workflows/release.yml | 3 +++ CHANGELOG.md | 9 +++++++++ docs/ci-cd.md | 5 +++-- pyproject.toml | 2 +- socketsecurity/__init__.py | 2 +- uv.lock | 2 +- 7 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-stable.yml b/.github/workflows/docker-stable.yml index 636ba032..4205ed9f 100644 --- a/.github/workflows/docker-stable.yml +++ b/.github/workflows/docker-stable.yml @@ -1,3 +1,5 @@ +# Every release already tags `stable`. Run this only to point `stable` at a +# different release, such as rolling back from a bad one. name: Mark Release as Stable on: workflow_dispatch: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 545594d9..6c3c5076 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -126,8 +126,11 @@ jobs: # Attach an SPDX SBOM generated from the built image, next to the # provenance attestation the action already adds. sbom: true + # `stable` follows `latest`. To point it at an older release, run + # docker-stable.yml. tags: | socketdev/cli:latest + socketdev/cli:stable socketdev/cli:${{ env.VERSION }} build-args: | CLI_VERSION=${{ env.VERSION }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 4eed82ff..765c1aea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2.12.2 + +### Changed + +- Each release now also tags `socketdev/cli:stable`, so `stable` and `latest` + both point at the newest release. Previously `stable` moved only when someone + promoted a release by hand. Pin `socketdev/cli:` for reproducible CI + runs. + ## 2.12.1 ### Changed: bump pinned Coana CLI to 15.15.1 diff --git a/docs/ci-cd.md b/docs/ci-cd.md index cb6ee629..30929afc 100644 --- a/docs/ci-cd.md +++ b/docs/ci-cd.md @@ -526,8 +526,9 @@ console output and Dashboard association but does not post a PR comment. `socketdev/cli` on Docker Hub packages the CLI with the toolchains reachability analysis runs on: Node.js, Go, Java, .NET, Rust, Ruby, pyenv, and PyPy on -`linux/amd64`. The toolchains are most of the image's size. Tags are published -per release (`socketdev/cli:`), plus `latest` and `stable`. +`linux/amd64`. The toolchains are most of the image's size. Each release is +published as `socketdev/cli:`, and `latest` and `stable` both point at +the newest release. Pin a version tag for reproducible CI runs. ```sh docker run --rm \ diff --git a/pyproject.toml b/pyproject.toml index 3ee6508e..76960bad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "socketsecurity" -version = "2.12.1" +version = "2.12.2" requires-python = ">= 3.11" license = {"file" = "LICENSE"} dependencies = [ diff --git a/socketsecurity/__init__.py b/socketsecurity/__init__.py index 01e27579..4494a36d 100644 --- a/socketsecurity/__init__.py +++ b/socketsecurity/__init__.py @@ -1,4 +1,4 @@ __author__ = 'socket.dev' -__version__ = '2.12.1' +__version__ = '2.12.2' USER_AGENT_NAME = 'socket-python-cli' USER_AGENT = f'{USER_AGENT_NAME}/{__version__}' diff --git a/uv.lock b/uv.lock index 6077c132..98067b93 100644 --- a/uv.lock +++ b/uv.lock @@ -1334,7 +1334,7 @@ wheels = [ [[package]] name = "socketsecurity" -version = "2.12.1" +version = "2.12.2" source = { editable = "." } dependencies = [ { name = "beautifulsoup4" },