Skip to content

[AAASM-3722] 🐛 (ci): Fix + pin cyclonedx SBOM flag in release-python.yml#180

Merged
Chisanan232 merged 1 commit into
masterfrom
v0.0.1/AAASM-3722/fix_sbom_flag
Jun 25, 2026
Merged

[AAASM-3722] 🐛 (ci): Fix + pin cyclonedx SBOM flag in release-python.yml#180
Chisanan232 merged 1 commit into
masterfrom
v0.0.1/AAASM-3722/fix_sbom_flag

Conversation

@Chisanan232

Copy link
Copy Markdown
Contributor

Description

Fixes the python b5 release dry-run failure (run 28152201157) at Generate CycloneDX SBOM:

cyclonedx-py: error: unrecognized arguments: --outfile

Root cause: release-python.yml ran uvx --from cyclonedx-bom unpinned, so uvx pulled the latest cyclonedx-bom whose CLI dropped --outfile.

Fix: pin cyclonedx-bom==7.3.0 and use the current flag --output-file:
uvx --from cyclonedx-bom==7.3.0 cyclonedx-py environment .venv --output-format JSON --output-file sbom.cdx.json
Pinning prevents future CLI drift (the actual root cause).

Verified: re-ran the release dry-run on this branch — the Generate CycloneDX SBOM job is completed:success (run 28152618977). Nothing published (dry-run).

Type of Change

  • 🐛 Bug fix (CI)

Related Issues

  • Closes AAASM-3722 · surfaced by the AAASM-3706 (python b5) GATE-2 dry-run

🤖 Generated with Claude Code

The SBOM step used --outfile, which the latest cyclonedx-bom CLI no
longer accepts (renamed to -o/--output-file), failing the release with
exit 2. Unpinned uvx --from cyclonedx-bom pulled the drifting latest.

Use the correct --output-file flag and pin cyclonedx-bom==7.3.0 so the
CLI surface stays stable across releases.

Closes AAASM-3722

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Chisanan232

Copy link
Copy Markdown
Contributor Author

✅ Claude Code review — AAASM-3722 (python SBOM)

CI: all green — Analyze (python), CodeQL, Run tag → PEP 440 fixture suite, analyze (4 pass / 0 fail). No acceptance-type failures.

Scope vs ticket: fixes the Generate CycloneDX SBOM step that failed the b5 release dry-run with cyclonedx-py: error: unrecognized arguments: --outfile. Root cause = unpinned uvx --from cyclonedx-bom pulling a latest CLI that dropped --outfile. Fix = pin cyclonedx-bom==7.3.0 + use --output-file — addresses both the symptom (flag) and the cause (drift) per the ticket's AC.

Really fixes the release error? Yes — verified on the actual release workflow: re-ran the b5 dry-run on this branch (run 28152618977) and the Generate CycloneDX SBOM job — the exact job that failed in run 28152201157 — is now success. Nothing published (dry-run).

Verdict: ✅ Ready to approve & merge.

@Chisanan232 Chisanan232 merged commit 8778c6e into master Jun 25, 2026
14 checks passed
@Chisanan232 Chisanan232 deleted the v0.0.1/AAASM-3722/fix_sbom_flag branch June 25, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant