Skip to content

ci: harden wrynose CVE artifact collection globs#285

Draft
ajlennon wants to merge 1 commit into
masterfrom
cursor/fix-bugbot-cve-glob-d7c2
Draft

ci: harden wrynose CVE artifact collection globs#285
ajlennon wants to merge 1 commit into
masterfrom
cursor/fix-bugbot-cve-glob-d7c2

Conversation

@ajlennon

Copy link
Copy Markdown
Member

Summary

Addresses Cursor Bugbot’s “Wrynose CVE glob wrong” finding on the shared CI workflow.

OE wrynose sbom-cve-check deploys ${IMAGE_NAME}.sbom-cve-check.yocto.json and ${IMAGE_NAME}.sbom-cve-check.spdx.json (not the older ${IMAGE_NAME}.cve-check.json names). The previous *.sbom-cve-check*.json glob already matched those files; this change makes the step explicit and more resilient:

  • Collect the real sbom-cve-check extensions first
  • Also accept legacy .cve-check.json / .cve-check.spdx.json and the docstring alias .sbom-cve-check.json
  • Use nullglob + array copy
  • On failure, list the image deploy directory for easier diagnosis

The same fix was pushed to whinlatter (updates PR #273). PR #276’s missing-mkdir finding was already fixed earlier; a redundant mkdir -p was added in the meta-openembedded clone step for step isolation.

Test plan

  • Confirm master CI CVE step still finds reports after test-image-mono (wrynose path)
  • Confirm failure path prints deploy dir listing when no reports exist
Open in Web Open in Cursor 

Collect the sbom-cve-check deploy names OE actually writes
(.sbom-cve-check.yocto.json / .sbom-cve-check.spdx.json), plus
legacy cve-check filenames, and list the deploy dir on failure.

Co-authored-by: Alex Lennon <ajlennon@dynamicdevices.co.uk>
@cursor
cursor Bot deleted the cursor/fix-bugbot-cve-glob-d7c2 branch July 19, 2026 10:43
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.

2 participants