Skip to content

chore: add go-licenses NOTICE generation to release pipeline #125

@michaelmcnees

Description

@michaelmcnees

Mantle's release archives contain compiled Go dependencies under Apache 2.0, MIT, BSD, and MPL licenses. Apache 2.0 in particular requires that upstream NOTICE files be reproduced in distributions. Currently the release pipeline has no step to collect or bundle these notices.

Change:

  1. Add go-licenses (or cyclonedx-gomod) to the release workflow to generate a NOTICE or third_party_licenses.txt file
  2. Include the generated file in the goreleaser archives via the files stanza
  3. Optionally include it in the Docker image at /usr/local/share/mantle/NOTICE

This is most important for Apache 2.0 dependencies like google.golang.org/grpc, OpenTelemetry, and the AWS/Azure/GCP SDKs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions