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:
|
2023-09-05 14:30:49 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-12 05:44:28 -05:00
|
|
|
- uses: actions/setup-go@v5
|
2022-01-24 12:31:39 -05:00
|
|
|
with:
|
2023-03-22 14:33:21 -05:00
|
|
|
cache: false
|
2024-11-08 11:58:55 -05:00
|
|
|
go-version: 1.23.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
|
2023-10-09 22:23:51 -05:00
|
|
|
- name: Check if licenses file is updated
|
|
|
|
run: make update-licenses
|