Skip to content

Commit

Permalink
Add GHA to validate required license headers (async-profiler#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
roy-soumadipta authored Oct 16, 2024
1 parent da3f5f3 commit 5a90a82
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Linter Checks

on:
- push
- pull_request

jobs:
check-license-headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check license headers
uses: apache/skywalking-eyes/[email protected]
22 changes: 22 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
header:
- paths:
- 'src/jattach'
license:
content: |
Copyright The jattach authors
SPDX-License-Identifier: Apache-2.0
comment: on-failure

- paths:
- 'src'
- 'test'
paths-ignore:
- 'src/jattach'
- 'src/res'
license:
content: |
Copyright The async-profiler authors
SPDX-License-Identifier: Apache-2.0
comment: on-failure

0 comments on commit 5a90a82

Please sign in to comment.