Skip to content

Commit

Permalink
autogen: update license overview
Browse files Browse the repository at this point in the history
  • Loading branch information
ory-bot committed Jan 8, 2025
1 parent 0954231 commit 6c488a0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 49 deletions.
7 changes: 7 additions & 0 deletions .bin/license-engine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ALLOWED_LICENSES=(
'BSD-3-Clause'
'(BSD-3-Clause OR GPL-2.0)'
'BSD-3-Clause OR MIT'
'(BSD-3-Clause AND Apache-2.0)'
'CC0-1.0'
'CC-BY-3.0'
'CC-BY-4.0'
Expand Down Expand Up @@ -73,6 +74,12 @@ APPROVED_MODULES=(
'github.com/jmespath/go-jmespath' # Apache-2.0 https://github.com/jmespath/go-jmespath/blob/master/LICENSE
'github.com/ory/keto/proto/ory/keto/opl/v1alpha1' # Apache-2.0 - submodule of keto
'github.com/ory/keto/proto/ory/keto/relation_tuples/v1alpha2' # Apache-2.0 - submodule of keto
'@ory-corp/.*' # Ory IP
'github.com/apache/arrow/.*' # Apache-2.0 https://github.com/apache/arrow/blob/main/LICENSE.txt
'github.com/ory-corp/webhook-target' # Ory IP
'@ory/keto-grpc-client.*' # Apache-2.0 - submodule of keto
'golden-fleece@1.0.9' # MIT: https://github.com/Rich-Harris/golden-fleece/blob/master/LICENSE
'github.com/gogo/googleapis/.*' # Apache-2.0 https://github.com/gogo/googleapis/blob/master/LICENSE
)

# These lines in the output should be ignored (plain text, no regex).
Expand Down
12 changes: 5 additions & 7 deletions .bin/list-licenses
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ bin_dir="$(cd "$(dirname "$0")" && pwd)"
# list Node licenses
if [ -f package.json ]; then
if jq -e '.dependencies and (.dependencies | keys | length > 0)' package.json >/dev/null; then
npm install >/dev/null 2>&1
npm exec --yes license-checker -- --production --csv --excludePrivatePackages --customPath "${bin_dir}"/license-template-node.json | grep -v '^$'
{ echo; } 2>/dev/null
npx --yes license-checker --production --csv --excludePrivatePackages --customPath "${bin_dir}"/license-template-node.json | grep -v '^$'
echo
else
echo "No dependencies found in package.json" >&2
{ echo; } 2>/dev/null
echo
fi
fi

Expand All @@ -26,15 +25,14 @@ if [ -f go.mod ]; then
sort -u |
awk -F/ '{ if ($1 == "github.com" && NF >= 3) { print $1"/"$2"/"$3 } else { print } }' |
sort -u
{ echo; } 2>/dev/null
)
if [ -z "$go_modules" ]; then
echo "No Go modules found" >&2
else
# Workaround until https://github.com/google/go-licenses/issues/307 is fixed
# .bin/go-licenses report "$module_name" --template .bin/license-template-go.tpl 2>/dev/null
#
echo "$go_modules" | xargs -I {} sh -c '.bin/go-licenses report --template .bin/license-template-go.tpl {}' 2>/dev/null | grep -v '^$'
{ echo; } 2>/dev/null
echo "$go_modules" | xargs -I {} sh -c '.bin/go-licenses report --template .bin/license-template-go.tpl {}' | grep -v '^$'
echo
fi
fi
42 changes: 0 additions & 42 deletions .reports/dep-licenses.csv
Original file line number Diff line number Diff line change
@@ -1,45 +1,3 @@
"module name","licenses"
"@next/env@14.2.15","MIT"
"@next/swc-linux-x64-gnu@14.2.15","MIT"
"@next/swc-linux-x64-musl@14.2.15","MIT"
"@ory/client@1.6.2","Apache-2.0"
"@ory/integrations@0.0.1","Apache-2.0"
"@swc/counter@0.1.3","Apache-2.0"
"@swc/helpers@0.5.5","Apache-2.0"
"@types/tldjs@2.3.4","MIT"
"asynckit@0.4.0","MIT"
"axios@1.7.7","MIT"
"binaryextensions@6.11.0","Artistic-2.0"
"busboy@1.6.0","MIT"
"caniuse-lite@1.0.30001589","CC-BY-4.0"
"client-only@0.0.1","MIT"
"combined-stream@1.0.8","MIT"
"cookie@1.0.1","MIT"
"delayed-stream@1.0.0","MIT"
"editions@6.21.0","Artistic-2.0"
"follow-redirects@1.15.9","MIT"
"form-data@4.0.0","MIT"
"graceful-fs@4.2.11","ISC"
"istextorbinary@9.5.0","Artistic-2.0"
"js-tokens@4.0.0","MIT"
"loose-envify@1.4.0","MIT"
"mime-db@1.52.0","MIT"
"mime-types@2.1.35","MIT"
"nanoid@3.3.8","MIT"
"next@14.2.15","MIT"
"picocolors@1.0.0","ISC"
"postcss@8.4.31","MIT"
"proxy-from-env@1.1.0","MIT"
"punycode@1.4.1","MIT"
"react-dom@18.2.0","MIT"
"react@18.2.0","MIT"
"scheduler@0.23.0","MIT"
"set-cookie-parser@2.7.0","MIT"
"source-map-js@1.0.2","BSD-3-Clause"
"streamsearch@1.1.0","MIT"
"styled-jsx@5.1.1","MIT"
"textextensions@6.11.0","Artistic-2.0"
"tldjs@2.3.1","MIT"
"tslib@2.8.0","0BSD"
"version-range@4.14.0","Artistic-2.0"

0 comments on commit 6c488a0

Please sign in to comment.