Skip to content

Commit b15dd05

Browse files
authored
Merge pull request #676 from ruby-oauth/feat/skywalking-eyes
👷 Add Apache SkyWalking Eyes
2 parents 2291498 + f554fbe commit b15dd05

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/workflows/license-eye.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Apache SkyWalking Eyes
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- 'main'
10+
- '*-stable'
11+
tags:
12+
- '!*' # Do not execute on tags
13+
pull_request:
14+
branches:
15+
- '*'
16+
# Allow manually triggering the workflow.
17+
workflow_dispatch:
18+
19+
# Cancels all previous workflow runs for the same branch that have not yet completed.
20+
concurrency:
21+
# The concurrency group contains the workflow name and the branch name.
22+
group: "${{ github.workflow }}-${{ github.ref }}"
23+
cancel-in-progress: true
24+
25+
jobs:
26+
license-check:
27+
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v5
32+
33+
- name: Check Dependencies' License
34+
uses: apache/skywalking-eyes/dependency@main
35+
with:
36+
config: .licenserc.yaml
37+
# Ruby packages declared as dependencies in gemspecs or Gemfiles are
38+
# typically consumed as binaries; enable weak-compatibility
39+
# so permissive and weak-copyleft combinations are treated as compatible.
40+
flags: --weak-compatible

.licenserc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
header:
2+
license:
3+
spdx-id: MIT
4+
5+
dependency:
6+
files:
7+
- Gemfile.lock

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Please file a bug if you notice a violation of semantic versioning.
1818

1919
## [Unreleased]
2020
### Added
21+
- Apache SkyWalking Eyes dependency license check
2122
### Changed
2223
### Deprecated
2324
### Removed

0 commit comments

Comments
 (0)