Skip to content

Commit

Permalink
Merge pull request #11 from coderbirju/add-license-check
Browse files Browse the repository at this point in the history
Add go-licenses@v1.6.0 to project-checks
  • Loading branch information
estesp authored Mar 23, 2024
2 parents eae3c6e + b2195d2 commit bf66c6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ runs:
fi
${{ github.action_path }}/script/validate/dco
echo "::endgroup::"
- name: Install go-licenses
shell: bash
run: go install github.com/google/go-licenses@v1.6.0
# the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
- name: Check licenses
shell: bash
run: go-licenses check --include_tests ${{ github.workspace }}/... --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib


- name: Validate file headers
shell: bash
Expand Down

0 comments on commit bf66c6b

Please sign in to comment.