fix(ci): pin Syft 1.46.0 in SBOM action (1.42.3 can't parse bun.lock) - #3415
Merged
Merged
Conversation
The SBOM run still produced an empty snapshot after switching to file:bun.lock. Root cause proven: anchore/sbom-action@v0.24.0 bundles Syft 1.42.3, and 'syft scan file:bun.lock' on 1.42.3 yields exactly 1 package (no bun.lock support). Syft 1.46.0 yields the full tree — verified locally: 2484 packages (spdx) / 2496 resolved deps in the GitHub snapshot format that gets submitted. Pin syft-version: v1.46.0 so the action uses a Syft that can read bun.lock. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
claudfuen
pushed a commit
that referenced
this pull request
Jul 15, 2026
# [3.102.0](v3.101.2...v3.102.0) (2026-07-15) ### Bug Fixes * **ci:** pin Syft 1.46.0 in SBOM action (1.42.3 can't parse bun.lock) ([#3415](#3415)) ([5f47024](5f47024)) * **ci:** scan bun.lock via file: input so the SBOM isn't empty ([#3414](#3414)) ([e47e6fd](e47e6fd)) * **deps:** override uuid to ^11.1.1 (Dependabot [#85](#85)) ([#3418](#3418)) ([598ff8c](598ff8c)) * **deps:** patch tmp and js-yaml in mcp-server (Dependabot [#58](https://github.com/trycompai/comp/issues/58)/[#59](https://github.com/trycompai/comp/issues/59)/[#71](https://github.com/trycompai/comp/issues/71)) ([#3412](#3412)) ([59a6b0f](59a6b0f)) * **deps:** remediate dependency security vulnerabilities ([#3403](#3403)) ([7577a37](7577a37)) * **deps:** remediate dependency security vulnerabilities (165→16, 4 critical→0) ([#3406](#3406)) ([d403e9c](d403e9c)) * **device-agent:** implement the installer-cleanup fix ([#3381](#3381)) ([0f7581b](0f7581b)) * **security:** prevent SSRF in task-automation enterprise API calls ([#3411](#3411)) ([dcec288](dcec288)), closes [#116](#116) * **security:** resolve open CodeQL alerts (XSS, sanitization, workflow perms) ([#3419](#3419)) ([32329be](32329be)), closes [#108](#108) [js/xss-throu#dom](https://github.com/js/xss-throu/issues/dom) [#95](#95) [84/#85](#85) ### Features * **framework-editor:** raise requirement description limit to 100,000 chars (FRAME-2) ([67c9f4a](67c9f4a))
Contributor
|
🎉 This PR is included in version 3.102.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause (proven)
After #3414 switched to
file: bun.lock, the SBOM run still submitted an empty snapshot (artifact had 1 package). The CI log shows the action ransyft scan file:bun.lockwith Syft 1.42.3 (bundled inanchore/sbom-action@v0.24.0).Reproduced both versions locally against this repo's
bun.lock:file:bun.lockresultSo it was never the scan target — it's the Syft version.
Fix
Pin
syft-version: v1.46.0in the action so it uses a Syft that can parsebun.lock.After merge
The workflow re-runs on
main; thesbom.spdx.jsonartifact should jump from 1 → ~2484 packages, and the submitted snapshot (~2496 deps) populates the dependency graph. Then GitHub's Export SBOM + Dependabot finally reflect the bun tree. (Expect Dependabot to then surface the ~15 dev/buildbun auditfindings — accurate, 0 critical.)🤖 Generated with Claude Code
Summary by cubic
Pin Syft to v1.46.0 in the SBOM workflow so
bun.lockis parsed correctly and the dependency snapshot is fully populated.anchore/sbom-action@v0.24.0bundles Syft 1.42.3, which can’t readbun.lock(yields 1 package).syft-version: v1.46.0fixes parsing. Expectsbom.spdx.jsonto include ~2484 packages and the snapshot ~2496 deps.Written for commit ffc9423. Summary will update on new commits.