Skip to content

Commit e151c3c

Browse files
committed
Run go licenses checks in working directory
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
1 parent e033c76 commit e151c3c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ runs:
6464
echo "::group::🚧 Get dependencies"
6565
go install -v github.com/vbatts/git-validation@latest
6666
go install -v github.com/containerd/ltag@latest
67+
go install -v github.com/google/go-licenses@latest
6768
echo "::endgroup::"
6869
6970
- name: DCO Checks
@@ -90,12 +91,10 @@ runs:
9091
${{ github.action_path }}/script/validate/dco
9192
echo "::endgroup::"
9293
93-
- name: Install go-licenses
94-
shell: bash
95-
run: go install github.com/google/go-licenses@v1.6.0
9694
# the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
9795
- name: Check licenses
9896
shell: bash
97+
working-directory: ${{ inputs.working-directory }}
9998
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
10099

101100

0 commit comments

Comments
 (0)