Skip to content

Commit f45b619

Browse files
committed
Add license header automation
1 parent ad576db commit f45b619

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: License Header Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
push:
8+
branches:
9+
- develop
10+
11+
jobs:
12+
check-license-header:
13+
name: Check License Header
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: apache/skywalking-eyes/header@main
19+
with:
20+
mode: check

.licenserc.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
copyright-owner: Amazon.com, Inc. or its affiliates.
5+
content: |
6+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7+
SPDX-License-Identifier: Apache-2.0
8+
9+
paths:
10+
- '**/*.py'
11+
12+
paths-ignore:
13+
- '**/*.md'
14+
- '**/*.java'
15+
- 'LICENSE'
16+
- 'NOTICE'
17+
- '**/smithy_core/rfc3986.py'
18+
19+
language:
20+
Python:
21+
extensions:
22+
- ".py"

0 commit comments

Comments
 (0)