Repository navigation
build: ship third-party licences and notices with Sigyll - #34
Merged
Merged
Conversation
Sigyll redistributes its NuGet packages in the container image, and their licences ask for the copyright notice, the licence text and (for Apache-2.0) any NOTICE file to travel with them. Nothing carried them. tools/third-party-notices/ThirdPartyNotices.cs writes THIRD-PARTY-NOTICES.txt from a published application's deps.json, so it lists exactly what ships at the versions that ship: each package's licence and copyright, the notice files packages include, and each distinct licence text once. Texts come from the packages themselves; a package without a licence file gets the standard text for its SPDX identifier from licences/. The run fails when a licence text can't be found. Both Dockerfiles run it after publish, so the image holds /app/THIRD-PARTY-NOTICES.txt and Sigyll's own LICENSE, and CI and the release workflow refuse an image without them. CI also writes one file covering all three applications (with the portal's bundled Bootstrap) beside the BOMs, and a release attaches it with a checksum. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015WNuLiokmqeoddhdh8X3As
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.
Sigyll redistributes its NuGet packages in the container image. Their licences ask for the copyright notice, the licence text and, for Apache-2.0, any
NOTICEfile to travel with them; nothing carried them. This generatesTHIRD-PARTY-NOTICES.txtat build time and puts it where Sigyll is distributed.How
tools/third-party-notices/ThirdPartyNotices.cs(a single-file .NET program, no dependencies) reads a published application'sdeps.json, so the list is exactly what ships, at the versions that ship. Nothing is committed that could go stale, and dependency updates need no manual step.NOTICE,THIRD-PARTY-NOTICES); and its licence text. Identical texts appear once, with the packages they apply to.licences/(Apache-2.0, MIT, BSD-3-Clause, PostgreSQL). The run fails when a licence text can't be found, so a new dependency can't ship without one.Where it ends up
/app/THIRD-PARTY-NOTICES.txt, plus Sigyll's own/app/LICENSE. CI and the release workflow refuse an image without them.Checked
docker build -f Sigyll/Dockerfile: the image contains both files (72 packages for Sigyll alone), including Pkcs11Interop's notice.Not covered
🤖 Generated with Claude Code
https://claude.ai/code/session_015WNuLiokmqeoddhdh8X3As