Skip to content

Commit

Permalink
ci: check for 3rd party Go dependencies licenses
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net>
  • Loading branch information
rolinh committed Mar 4, 2024
1 parent 5afe1be commit 54795cf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lint-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ jobs:
go mod vendor
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy && go mod vendor', and submit your changes"; exit 1)
license-check:
name: Check third party dependencies licenses
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
# renovate: datasource=golang-version depName=go
go-version: 1.22.0
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- name: Check for unauthorized dependencies
run: go run ./tools/licensecheck ./... 2>/dev/null

golangci:
name: Lint Source Code
runs-on: ubuntu-latest
Expand Down

0 comments on commit 54795cf

Please sign in to comment.