get.porter.sh/porter@v1.3.0/.github/workflows/check-licenses.yaml (about) 1 name: Check licenses 2 on: 3 push: 4 pull_request: 5 branches: 6 - main 7 8 jobs: 9 check: 10 runs-on: ubuntu-latest 11 steps: 12 - name: Checkout 13 uses: actions/checkout@v3 14 with: 15 fetch-depth: 0 16 - name: Set up Go 17 uses: actions/setup-go@v4 18 with: 19 go-version: 1.24.4 20 cache: true 21 - name: Install go-licenses 22 run: go install github.com/google/go-licenses@v1.6.0 23 - name: Check licenses 24 run: | 25 go-licenses check ./... \ 26 --ignore github.com/xi2/xz,golang.org/x/sys/unix # https://github.com/xi2/xz/blob/master/LICENSE