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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -185,9 +188,11 @@ jobs:
contents: read
packages: write
steps:
# The image installs secfoo==<version> 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
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <github-url> (secfoo shells out to
# `git clone --depth 1`).
Expand Down
Loading