Skip to content

Commit

Permalink
Check the licenses of dependencies
Browse files Browse the repository at this point in the history
Resolved #2942.

Signed-off-by: KallyDev <kallydev@gmail.com>
  • Loading branch information
kallydev committed Oct 14, 2023
1 parent 6c5683a commit a440e7d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/check-licenses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check licenses
on:
push:
pull_request:

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
- name: Install go-licenses
run: go install github.com/google/go-licenses@v1.6.0
- name: Check licenses
run: |
go-licenses check ./... \
--ignore github.com/xi2/xz,golang.org/x/sys/unix # https://github.com/xi2/xz/blob/master/LICENSE

0 comments on commit a440e7d

Please sign in to comment.