diff --git a/.github/workflows/check-licenses.yaml b/.github/workflows/check-licenses.yaml new file mode 100644 index 000000000..99576c64f --- /dev/null +++ b/.github/workflows/check-licenses.yaml @@ -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 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 4eac04346..73444ce15 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -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)