diff --git a/.github/workflows/docker-stable.yml b/.github/workflows/docker-stable.yml index 636ba03..4205ed9 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 545594d..6c3c507 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 4eed82f..765c1ae 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 cb6ee62..30929af 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 3ee6508..76960ba 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 01e2757..4494a36 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 6077c13..98067b9 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" },