Generate CycloneDX SBOMs for the shipped NuGet packages - #55
Merged
Conversation
Adds a CreateSbom target, triggered whenever CreateNugetPackages runs (including the default CI target used by library-cicd.yml, so no workflow changes are needed), that uses the shared SbomGenerator from build-common to produce a per-package CycloneDX SBOM for EU Cyber Resilience Act evidence. SBOMs are written to artifacts/sbom (published by the shared CI workflow as an "sbom" artifact) and embedded into each .nupkg at _manifest/cyclonedx/bom.cdx.json. Avalonia.Controls.WebView.Core is IL-merged into both shipped packages rather than shipped standalone, so each SBOM is generated from the package project plus Core, making Core's dependencies part of both packages' SBOMs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012qDKmcNFxV3Xk5PjTGKrK6
maxkatz6
approved these changes
Jul 8, 2026
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.
Summary
Adds a
CreateSbomnuke target that produces a CycloneDX SBOM for both shipped packages (Avalonia.Controls.WebView,Avalonia.Xpf.Controls.WebView), as EU Cyber Resilience Act technical-documentation evidence. Uses the shared generator merged in AvaloniaUI/build-common#4; see AvaloniaUI/Avalonia.Controls.TreeDataGrid-Accelerate#169 for the pilot.CreateSbomis.TriggeredBy(CreateNugetPackages), so the default CI target used bylibrary-cicd.ymlgenerates and embeds SBOMs with no workflow changes; the shared workflow uploadsartifacts/sbomas ansbomartifact automatically.Avalonia.Controls.WebView.Coreis IL-merged into both shipped packages rather than shipped standalone, so each package'"'"'s SBOM is generated from the package project plus Core viaGenerateForPackage— Core'"'"'s dependencies (SkiaSharp, HarfBuzz, AndroidX, ...) appear in both packages'"'"' SBOMs..nupkgat_manifest/cyclonedx/bom.cdx.json. The CycloneDX tool is resolved from its net8.0 build, matching this build project'"'"'s TFM.Test plan
🤖 Generated with Claude Code
https://claude.ai/code/session_012qDKmcNFxV3Xk5PjTGKrK6