-
Notifications
You must be signed in to change notification settings - Fork 2.9k
ci: add Go dependency license check workflow #6334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 13 commits
92b37ec
ae199e3
e8c3127
fe1c783
b52a6e8
84dff12
9d1db97
1d2a00d
b831a91
9cb4e75
4d1a3c4
b908ebc
6c20bb9
c7e9960
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: License Check | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'go.mod' | ||
| - 'go.sum' | ||
| - 'go.tool.mod' | ||
| - 'go.tool.sum' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| license-check: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| # https://github.com/apache/skywalking-eyes | ||
| - name: Check dependency licenses | ||
| uses: apache/skywalking-eyes/dependency@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0 | ||
| with: | ||
| config: .licenserc.yaml | ||
| mode: check | ||
| flags: "-w" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| header: | ||
| license: | ||
| # The license scan needs to know the project's own license to run the compatibility matrix. | ||
| spdx-id: Apache-2.0 | ||
|
|
||
| dependency: | ||
| files: | ||
| - go.mod | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't there is also the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will add go.tool.mod support to the upstream. At the moment it does not support
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Uh oh!
There was an error while loading. Please reload this page.