Skip to content

Commit

Permalink
Add go-licenses@v1.6.0 to project-checks
Browse files Browse the repository at this point in the history
This commit adds go-licenses@v1.6.0 license checker to the workflow.
The action checks for third party licenses from the following
https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-tgo-licenses@v1.6.0 license checker to the workflow.

Signed-off-by: Arjun Raja <arjunry@amazon.com>
  • Loading branch information
coderbirju committed Mar 21, 2024
1 parent eae3c6e commit b2195d2
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 b2195d2

Please sign in to comment.