From 3f6bbe7bf9162b887d2b67955946024f6df61d5a Mon Sep 17 00:00:00 2001 From: Janice Lan Date: Thu, 19 Sep 2024 23:58:26 +0000 Subject: [PATCH] add github actions to check file headers --- .github/workflows/headers.yml | 13 +++++++++++++ .licenserc.yaml | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/headers.yml create mode 100644 .licenserc.yaml diff --git a/.github/workflows/headers.yml b/.github/workflows/headers.yml new file mode 100644 index 0000000..397a853 --- /dev/null +++ b/.github/workflows/headers.yml @@ -0,0 +1,13 @@ +name: headers +run-name: License headers check by ${{ github.actor }} + +on: [push, pull_request] + +jobs: + header-checks: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Check License Header + uses: apache/skywalking-eyes/header@main diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 0000000..6456ccb --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,14 @@ +header: + license: + spdx-id: MIT + content: | + Copyright (c) Meta Platforms, Inc. and affiliates. + + This source code is licensed under the MIT license found in the + LICENSE file in the root directory of this source tree. + + paths-include: + - "**/*.py" + - "**/*.sh" + + comment: never