You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
768 B
38 lines
768 B
name: License Check
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
license-check:
|
|
name: License Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.23
|
|
|
|
- name: Install license-eye
|
|
run: |
|
|
go install github.com/apache/skywalking-eyes/cmd/license-eye@v0.4.0
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: License Header Check
|
|
run: |
|
|
license-eye header check -c .github/.licenserc.yaml
|
|
|
|
- name: License Dependency Check
|
|
run: |
|
|
license-eye dependency check -c .github/.licenserc.yaml
|
|
|