Skip to content

Commit 7883589

Browse files
committed
Test go license check
Signed-off-by: Arjun Raja <[email protected]>
1 parent 3134eeb commit 7883589

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: .github/workflows/ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,32 @@ jobs:
6161
sudo apt-get install -y jq
6262
make verify-vendor
6363
working-directory: src/github.com/containerd/containerd
64+
65+
66+
#
67+
# License Check
68+
#
69+
License:
70+
name: License Check
71+
runs-on: ubuntu-22.04
72+
timeout-minutes: 5
73+
74+
defaults:
75+
run:
76+
working-directory: src/github.com/containerd/containerd
77+
78+
steps:
79+
- uses: actions/checkout@v4
80+
with:
81+
path: src/github.com/containerd/containerd
82+
83+
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
84+
- name: Install go-licenses and run checks
85+
shell: bash
86+
# allow list from https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
87+
run: |
88+
go install github.com/google/[email protected]
89+
go-licenses check --include_tests github.com/containerd/containerd --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib
6490
6591
#
6692
# Protobuf checks

0 commit comments

Comments
 (0)