Skip to content

Commit 4b82835

Browse files
williabyclaude
andcommitted
docs(changelog): add Unreleased Fixed entry for python-reuse SPDX fix (#124)
Per global CLAUDE.md, `fix:` commits must add a CHANGELOG entry. The parent commit on this branch (ed595aa, "fix(reuse): use Docker image for SPDX generation") shipped without one. Backfill the bullet here under [Unreleased] -> ### Fixed, alongside the related #110 entry, covering: the Docker-image SPDX generation switch, the wheel-ABI root cause it solved, the gated upload step, the workflow-injection mitigation (env-var pass-through), the four-way SPDX status split landed in c9f1127, and the documented `fail-on-missing: false` behavior. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c9f1127 commit 4b82835

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ are no numbered releases.
8181

8282
### Fixed
8383

84+
- `python-reuse.yml`: replace `uv pip install --no-build 'reuse==5.0.2'` in the SPDX generation step with a second invocation of `fsfe/reuse-action` (pinned to v6.0.0) passing `args: spdx -o reuse-spdx.spdx`; PyPI publishes only one wheel per `reuse` release (e.g., 5.0.2 cp313-only, 6.2.0 cp310-only), so the runner's `uv venv` against system CPython 3.12 found no matching wheel and `--no-build` (the S8541/S8544 mitigation from #110) forbade the sdist fallback, causing the job to fail after a successful REUSE lint; the Docker image carries `reuse` for the correct Python ABI, sidestepping the wheel mismatch without weakening the host-side `--no-build` posture; also gate `Upload SPDX artifact` on the SPDX step outcome (`steps.spdx.outcome == 'success'`), move `${{ steps.*.outcome }}` interpolations into env vars in the Summary step (workflow-injection mitigation), distinguish `success`, upload failure, `skipped`, and `failure` in the SPDX status line of the job summary, and add an `#ASSUME` comment documenting that SPDX still runs against a non-compliant tree when callers pass `fail-on-missing: false`; fixes #124
8485
- `workflow-templates/python-fips-compatibility.yml`: correct `uses:` path from `ByronWilliamsCPA/.github/workflows/python-fips-compatibility.yml` to `ByronWilliamsCPA/.github/.github/workflows/python-fips-compatibility.yml`; the previous single-`.github` path 404'd at runtime for any consumer copying this starter template; aligns with the doubled-`.github` pattern used by all other `workflow-templates/*.yml` callers
8586
- `workflow-templates/python-cifuzzy.yml`: tighten the `github/codeql-action/upload-sarif` SHA tag comment from `# v4` to `# v4.35.4` to match the tag that resolves to the pinned SHA `68bde559dea0fdcac2102bfdf6230c5f70eb485e`
8687
- `python-sbom.yml`, `python-publish-pypi.yml`, `python-reuse.yml`, `python-supplemental-checks.yml`: ensure a virtual environment exists before `uv pip install --no-build` runs; `uv pip install` operates on an existing `.venv` and does not create one automatically, so the first `Install` step failed in any downstream consumer with: `error: No virtual environment found`. `python-sbom.yml` swaps the existing `uv sync --frozen` step ahead of the `cyclonedx-bom` install; the other three workflows had no `uv sync` step and add a `uv venv` step (or run-block prefix) to materialise a bare venv before the tool install; observed in `ByronWilliamsCPA/gleif` PR #37 for the sbom workflow; fixes #106

0 commit comments

Comments
 (0)