Skip to content

Commit cb0c7ee

Browse files
authored
Merge pull request #1832 from AkihiroSuda/check-licenses
CI: add go-licenses
2 parents 3561378 + 3c652c6 commit cb0c7ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
uses: docker://dkhamsing/awesome_bot:latest
4141
with:
4242
args: /github/workspace/README.md --allow-dupe --allow-redirect --request-delay 1 --white-list https://img.shields.io,http://127.0.0.1:8080,https://github.com/lima-vm/lima/releases/download,https://xbarapp.com,https://api.github.com
43+
- name: Install go-licenses
44+
run: go install github.com/google/[email protected]
45+
- name: Check licenses
46+
# the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
47+
run: go-licenses check --include_tests ./... --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib
4348

4449
unit:
4550
name: "Unit tests"

0 commit comments

Comments
 (0)