Skip to content

Commit

Permalink
Add licenses script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed Jan 9, 2025
1 parent c381a57 commit 888c062
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/scripts/third_party.md.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Licenses

| Software | License |
| :------- | :------ |
{{ range . }}| {{ .Name }} | {{ .LicenseName }} |
{{ end }}

14 changes: 14 additions & 0 deletions resources/scripts/third_party_licenses.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

# This script should be run from the root of the repository.
#
# Creates a summary of all third party dependencies and their licenses.
#
# This script requires `go-licenses` to be installed:
#
# go install github.com/google/go-licenses@latest

go-licenses report github.com/redpanda-data/benthos/v4/cmd/benthos \
--template ./resources/scripts/third_party.md.tpl \
> licenses/third_party.md

0 comments on commit 888c062

Please sign in to comment.