diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b6f72a..b9b075f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,6 +82,7 @@ jobs: tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} flavor: | latest=${{ !github.event.release.prerelease }} - uses: docker/build-push-action@v6 @@ -93,6 +94,24 @@ jobs: labels: ${{ steps.meta.outputs.labels }} build-args: VERSION=${{ needs.build.outputs.version }} + # Action users pin to the major version (fullstackspectrum/sbomly@v1), so move + # that tag to each stable release, once it is on PyPI, where the action installs from. + action-tag: + needs: [build, pypi] + if: ${{ !github.event.release.prerelease }} + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - name: Move the major version tag + env: + VERSION: ${{ needs.build.outputs.version }} + run: | + major="v${VERSION%%.*}" + git tag -f "$major" "$GITHUB_SHA" + git push -f origin "refs/tags/$major" + homebrew: needs: [build, pypi] if: ${{ !github.event.release.prerelease }} diff --git a/CHANGELOG.md b/CHANGELOG.md index ba8b607..89f17f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.0.0 (2026-11-17) + +First stable release. From here, Sbomly follows semantic versioning: the CLI flags, the `--fail-on` categories, the exit codes, the JSON output and the GitHub Action inputs and outputs only change in a backwards-incompatible way in a new major version. + +- No functional changes since 0.1.0. +- The GitHub Action can be pinned to `fullstackspectrum/sbomly@v1`, which follows the newest 1.x release. +- Docker images are also tagged with the major version, e.g. `fullstackspectrum/sbomly:1`. + ## 0.1.0 (2026-11-09) First release. diff --git a/README.md b/README.md index 4fa2066..0fe1cc4 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ Some findings are informational. They're shown, but they never fail a build: Sbomly ships as a composite action. It writes the Markdown summary to the job page, and exposes the report paths for a PR comment or artifact upload. ```yaml -- uses: fullstackspectrum/sbomly@v0.1.0 +- uses: fullstackspectrum/sbomly@v1 with: old: sbom-main.cdx.json new: sbom-pr.cdx.json diff --git a/dockerhub.md b/dockerhub.md index e9d92aa..53c601f 100644 --- a/dockerhub.md +++ b/dockerhub.md @@ -43,8 +43,9 @@ The `-t` flag gives you colour in the terminal. Drop it in CI logs. | Tag | Points to | | --- | --- | | `latest` | The newest stable release | -| `X.Y` (e.g. `0.1`) | The newest patch release in that minor series | -| `X.Y.Z` (e.g. `0.1.0`) | One exact release | +| `X` (e.g. `1`) | The newest release in that major series | +| `X.Y` (e.g. `1.0`) | The newest patch release in that minor series | +| `X.Y.Z` (e.g. `1.0.0`) | One exact release | Every tag is built for `linux/amd64` and `linux/arm64`. Pre-releases are published under their exact version only and never move `latest`. diff --git a/pyproject.toml b/pyproject.toml index fe23a1b..d1e3c01 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ authors = [ ] keywords = ["sbom", "cyclonedx", "spdx", "diff", "supply-chain", "security", "license", "ci"] classifiers = [ - "Development Status :: 3 - Alpha", + "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", diff --git a/sbomly/__init__.py b/sbomly/__init__.py index 60028cf..23b6a24 100644 --- a/sbomly/__init__.py +++ b/sbomly/__init__.py @@ -1,6 +1,6 @@ """Sbomly: see what changed between two SBOMs, and what deserves a closer look.""" -__version__ = "0.1.0" +__version__ = "1.0.0" def main() -> None: