2022-01-24 12:31:39 -05:00
|
|
|
name: "Software License Check"
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'go.mod'
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'go.mod'
|
|
|
|
# The branches below must be a subset of the branches above
|
|
|
|
branches: [main]
|
|
|
|
|
2022-07-11 14:54:49 -05:00
|
|
|
permissions: read-all
|
|
|
|
|
2022-01-24 12:31:39 -05:00
|
|
|
jobs:
|
|
|
|
license-check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: License Check
|
|
|
|
steps:
|
2022-07-13 16:15:33 -05:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-22 14:33:21 -05:00
|
|
|
- uses: actions/setup-go@v4
|
2022-01-24 12:31:39 -05:00
|
|
|
with:
|
2023-03-22 14:33:21 -05:00
|
|
|
cache: false
|
2023-04-27 02:09:46 -05:00
|
|
|
go-version: 1.20.x
|
2022-01-24 12:31:39 -05:00
|
|
|
- name: Install go-licenses
|
|
|
|
run: go install github.com/google/go-licenses@latest
|
|
|
|
- name: Check for forbidden licenses
|
|
|
|
run: make check-licenses
|