From 632eb82dbd094ffbbe826cb4dd28a747aabdff5a Mon Sep 17 00:00:00 2001 From: Artem Navoiev Date: Mon, 10 May 2021 11:38:56 +0300 Subject: [PATCH] =?UTF-8?q?Add=20vendor=20license=20checker,=20update=20co?= =?UTF-8?q?decov=20action,=20add=20dependbot=20for=20=E2=80=A6=20(#1280)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add vendor license checker, update codecov action, add dependbot for github actions * update gitingore, temprorary turn on check * fix action name * change action rules to trigger only when vendor changes * remove obsolete line from main action --- .github/dependabot.yml | 6 ++++++ .github/workflows/check-licenses.yml | 26 ++++++++++++++++++++++++++ .wwhrd.yml | 7 +++++++ 3 files changed, 39 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/check-licenses.yml create mode 100644 .wwhrd.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..123014908b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml new file mode 100644 index 0000000000..ce272b70d9 --- /dev/null +++ b/.github/workflows/check-licenses.yml @@ -0,0 +1,26 @@ +name: license-check +on: + push: + paths: + - 'vendor' + pull_request: + paths: + - 'vendor' +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Setup Go + uses: actions/setup-go@main + with: + go-version: 1.16 + id: go + - name: Dependencies + run: | + go get -u github.com/frapposelli/wwhrd + - name: Code checkout + uses: actions/checkout@master + - name: Check License + run: | + wwhrd check diff --git a/.wwhrd.yml b/.wwhrd.yml new file mode 100644 index 0000000000..5afba720d4 --- /dev/null +++ b/.wwhrd.yml @@ -0,0 +1,7 @@ +blacklist: + - GPL-2.0 +whitelist: + - Apache-2.0 + - MIT + - BSD-3-Clause + - BSD-2-Clause