From d1698f53401310ade95fc29a325a60dfcba036b7 Mon Sep 17 00:00:00 2001 From: Arjun Raja Yogidas Date: Thu, 21 Mar 2024 20:49:57 +0000 Subject: [PATCH] Test go license check Signed-off-by: Arjun Raja --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86d3d7e4462f..8337d4594e8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,28 +39,54 @@ jobs: # project: name: Project Checks - if: github.repository == 'containerd/containerd' + if: github.repository == 'coderbirju/containerd' runs-on: ubuntu-22.04 timeout-minutes: 5 steps: - uses: actions/checkout@v4 with: - path: src/github.com/containerd/containerd + path: src/github.com/coderbirju/containerd fetch-depth: 100 - - uses: ./src/github.com/containerd/containerd/.github/actions/install-go + - uses: ./src/github.com/coderbirju/containerd/.github/actions/install-go - - uses: containerd/project-checks@v1.1.0 + - uses: coderbirju/project-checks@v1.1.4 with: - working-directory: src/github.com/containerd/containerd + working-directory: src/github.com/coderbirju/containerd repo-access-token: ${{ secrets.GITHUB_TOKEN }} - name: verify go modules and vendor directory run: | sudo apt-get install -y jq make verify-vendor - working-directory: src/github.com/containerd/containerd + working-directory: src/github.com/coderbirju/containerd + + + # + # License Check + # + # License: + # name: License Check + # runs-on: ubuntu-22.04 + # timeout-minutes: 5 + + # defaults: + # run: + # working-directory: src/github.com/containerd/containerd + + # steps: + # - uses: actions/checkout@v4 + # with: + # path: src/github.com/containerd/containerd + + # - uses: ./src/github.com/containerd/containerd/.github/actions/install-go + # - name: Install go-licenses and run checks + # shell: bash + # # allow list from https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md + # run: | + # go install github.com/google/go-licenses@v1.6.0 + # 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 # # Protobuf checks