Skip to content

Commit

Permalink
Check the licenses of dependencies (#2943)
Browse files Browse the repository at this point in the history
* Check the licenses of dependencies
Signed-off-by: KallyDev <kallydev@gmail.com>
---------

Signed-off-by: KallyDev <kallydev@gmail.com>
  • Loading branch information
kallydev authored Oct 17, 2023
1 parent b63338b commit da36569
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/check-licenses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check licenses
on:
push:
pull_request:
branches:
- main

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
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ and we will add you. **All** contributors belong here. 💯
- [Sumit Kumar Soni](https://github.com/zelfroster)
- [Chaiyapruek Muangsiri](https://github.com/cmppoon)
- [Xin Fu](https://github.com/imfing)
- [KallyDev](https://github.com/kallydev)

0 comments on commit da36569

Please sign in to comment.