Skip to content

Test go license check #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected].0
- uses: coderbirju/[email protected].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/[email protected]
# 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
Expand Down
Loading