Skip to content
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/license-check.yml
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
Comment thread
ivankatliarchuk marked this conversation as resolved.
Outdated

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"
8 changes: 8 additions & 0 deletions .licenserc.yaml
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
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't there is also the go.tool.mod?
Or should the go.tool.mod be removed for the gh action trigger?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The 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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loading