diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 68e83a647..a958c926b 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -15,10 +15,11 @@ # limitations under the License. # -name: CI +name: License checker on: pull_request: + branches: [ master ] schedule: - cron: "0 18 * * *" # TimeZone: UTC 0 @@ -33,10 +34,13 @@ jobs: submodules: true - name: Check license header uses: apache/skywalking-eyes@985866ce7e324454f61e22eb2db2e998db09d6f3 + with: + log: info + config: .licenserc.yaml + mode: check dependency-license: name: Dependency licenses - needs: [changes] runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -46,7 +50,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: "1.18" + go-version: "1.20" - name: Check Dependencies Licenses run: | go install github.com/apache/skywalking-eyes/cmd/license-eye@47febf5 diff --git a/go.sum b/go.sum index 6deb6be94..cd6b4f5b0 100644 --- a/go.sum +++ b/go.sum @@ -54,8 +54,6 @@ github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/ github.com/Workiva/go-datastructures v1.0.52 h1:PLSK6pwn8mYdaoaCZEMsXBpBotr4HHn9abU0yMQt0NI= github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= -github.com/agiledragon/gomonkey/v2 v2.11.0 h1:5oxSgA+tC1xuGsrIorR+sYiziYltmJyEZ9qA25b6l5U= -github.com/agiledragon/gomonkey/v2 v2.11.0/go.mod h1:ap1AmDzcVOAz1YpeJ3TCzIgstoaWLA6jbbgxfB4w2iY= github.com/agiledragon/gomonkey/v2 v2.12.0 h1:ek0dYu9K1rSV+TgkW5LvNNPRWyDZVIxGMCFI6Pz9o38= github.com/agiledragon/gomonkey/v2 v2.12.0/go.mod h1:ap1AmDzcVOAz1YpeJ3TCzIgstoaWLA6jbbgxfB4w2iY= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=