Repository navigation
Closed
Labels
bugSomething isn't working
Description
Part of #87.
wave 2 · 0.17.5 · size M · starts after: B0 (#88) (both edit tests.yml)
Goal. The workflows test what they say they test, publish only what passed, and hold no token they don't need.
Owns: .github/workflows/*.yml, Dockerfile, benchmarks/report.py
Approach:
- The
py3.13leg really runs 3.13: pass--python ${{ matrix.python-version }}touv sync, or setUV_PYTHON(F144). - quay-on-tag runs only after tests pass and the tag matches the version, and never moves
:lateston a failed run (F143). - Least privilege:
- the benchmark job installs only from the lock, and gets
contents: writeonly in the commit step (F084); - publish.yml gets a
permissions:block, and a TestPyPI dispatch never publishes to PyPI (F142).
- the benchmark job installs only from the lock, and gets
- Pin third-party actions by SHA, and pass the tag through
env:instead of interpolating it into the shell (F141). - Docker: run as a non-root user, verify duckdb's checksum, and pin the base image by digest (F138).
- The benchmark 'vs previous' column compares with the immediately previous release (F085).
Findings
| Ref | Sev | Finding | Where |
|---|---|---|---|
| F084 | M | Benchmark job holds a contents:write token while installing and running unpinned packages from PyPI | .github/workflows/benchmark.yml:39 |
| F085 | M | The published benchmark 'vs previous' column compares against an arbitrary older release (0.17.0 was compared with 0.8.0) | benchmarks/report.py:270 |
| F138 | L | Docker image runs as root and installs the duckdb binary without integrity verification | Dockerfile:36 |
| F141 | L | Actions pinned to mutable tags or branches in jobs that hold secrets, and the tag name is interpolated into shell | .github/workflows/benchmark.yml:96 |
| F142 | L | publish.yml has no permissions block, and a manual 'testpypi' dispatch from a tag also publishes to PyPI | .github/workflows/publish.yml:78 |
| F143 | L | The Docker image, including :latest, is pushed on any tag even when tests fail or the tag does not match the version | .github/workflows/quay-on-tag.yml:4 |
| F144 | L | The CI 'py3.13' matrix leg runs the suite on Python 3.12, so the advertised 3.13 (and the allowed 3.14) are never tested | .github/workflows/tests.yml:29 |
Done when one PR on fix/b9 closes this, with a regression test against an oracle for every finding, and docs and changelog in the same PR.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity