Merge pull request #756 from buildtool/dependabot/go_modules/google.g… #918
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check dependencies licenses | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- 'www/**' | |
- '*.md' | |
- '.editorconfig' | |
- 'LICENSE' | |
- 'install.sh' | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- 'www/**' | |
- '*.md' | |
- '.editorconfig' | |
- 'LICENSE' | |
- 'install.sh' | |
jobs: | |
license-check: | |
runs-on: ubuntu-latest | |
name: License and Copyright Check | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
check-latest: 'true' | |
- name: Get google/go-licenses package | |
run: go install github.com/google/go-licenses@latest | |
shell: bash | |
- name: Check license | |
run: go-licenses check ./... |