diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6a544e6..6e60850 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -26,6 +26,12 @@ updates: schedule: interval: weekly day: monday + ignore: + # Digest and patch updates only: a new Python minor has to wait until + # CI tests it and the dependencies ship wheels for it (3.15 broke the + # 0.3.2 image build). + - dependency-name: python + update-types: ["version-update:semver-major", "version-update:semver-minor"] - package-ecosystem: npm directory: /npm diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e65e19..7905fd4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,8 @@ jobs: fail-fast: false matrix: include: - - os: macos-14 + # macos-14 runners are retired (the job is cancelled before it starts). + - os: macos-15 name: darwin-arm64 - os: macos-15-intel name: darwin-x64 @@ -134,7 +135,9 @@ jobs: - env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: twine upload dist/*.tar.gz dist/*.whl + # --skip-existing: a PyPI version can't be re-uploaded, so a re-run for a + # tag whose upload already succeeded must not fail here. + run: twine upload --skip-existing dist/*.tar.gz dist/*.whl publish-npm: name: Publish npm packages @@ -185,9 +188,11 @@ jobs: contents: read packages: write steps: + # The image installs secfoo== from PyPI, so only the build + # recipe comes from the checkout. Take it from the workflow's own + # commit, not the tag: a broken base image can then be fixed on main + # and the release re-run without moving a published tag. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - ref: ${{ inputs.tag }} - uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: registry: ghcr.io diff --git a/Dockerfile b/Dockerfile index 6375f51..d34b81a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,10 @@ # execute a skill. Without that, this image is still useful standalone for # `secfoo serve` / `secfoo list` / `secfoo show` against a mounted # ~/.secfoo store from a host-run assessment. -FROM python:3.15-slim@sha256:65a65fc7b30b06cb6df4930fd4650697cb23f4c2698ab81fc87e4b031bc36928 +# Python 3.12: the version CI tests and the release binaries bundle. 3.15 +# broke the 0.3.2 image build: dependencies such as zstandard have no 3.15 +# wheels yet, and the slim image has no compiler to build them. +FROM python:3.12-slim@sha256:5b5fe805d367f8f5a359ded6ab2652b7f9a206453ee6ee789c0045ba6ec15016 # git is required for --target (secfoo shells out to # `git clone --depth 1`).