diff --git a/.github/.licenserc.yaml b/.github/.licenserc.yaml new file mode 100644 index 000000000..98fb36aa5 --- /dev/null +++ b/.github/.licenserc.yaml @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +header: + license: + spdx-id: Apache-2.0 + copyright-owner: Apache Software Foundation + paths: + - . + excludes: + - build/** + - .docusaurus/** + - "**/*.md" + - "**/*.mdx" + - docs/.markdownlint.yaml + - NOTICE + - DISCLAIMER + - dist/** + - licenses/** + - testing/** + - spark/graphar/src/test/resources/** + - java/src/test/resources/** + - .licenserc.yaml + - .gitleaks.toml + - .gitmodules + - pre-commit-config.yaml + - "**/.gitignore" + - "**/.scalafix.conf" + - "**/.scalafmt.conf" + - cpp/apidoc/** + - cpp/thirdparty/** + - cpp/misc/cpplint.py + - spark/datasources-32/src/main/scala/org/apache/graphar/datasources/** + - spark/datasources-32/src/main/scala/org/apache/spark/sql/graphar/** + - spark/datasources-33/src/main/scala/org/apache/graphar/datasources/** + - spark/datasources-33/src/main/scala/org/apache/spark/sql/graphar/** + - spark/datasources-34/src/main/scala/org/apache/graphar/datasources/** + - spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/** + - spark/datasources-35/src/main/scala/org/apache/graphar/datasources/** + - spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/** + - java/src/main/java/org/apache/graphar/stdcxx/StdString.java + - java/src/main/java/org/apache/graphar/stdcxx/StdVector.java + - java/src/main/java/org/apache/graphar/stdcxx/StdSharedPtr.java + - java/src/main/java/org/apache/graphar/stdcxx/StdMap.java + - java/src/main/java/org/apache/graphar/stdcxx/StdUnorderedMap.java + - java/build.xml + - "**/*.json" + - pyspark/poetry.lock + - cli/*.yml + - cli/*.toml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3e76f9426..569886728 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -37,7 +37,7 @@ concurrency: jobs: build-website: - runs-on: ubuntu-latest + runs-on: ubuntu-slim if: ${{ !contains(github.event.pull_request.title, 'WIP') }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 25ae537e7..15efa1d5c 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -30,15 +30,21 @@ concurrency: cancel-in-progress: true jobs: - check: - runs-on: ubuntu-latest + license-check: + name: License Check + runs-on: ubuntu-slim steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} + ref: ${{ github.event.pull_request.head.ref || github.ref }} submodules: false fetch-depth: 0 - - name: Check License Header - uses: korandoru/hawkeye@v4 + - name: Check license header + uses: apache/skywalking-eyes@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + config: .github/.licenserc.yaml diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 66b8601d5..6182c9b8a 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -38,7 +38,7 @@ permissions: jobs: validate-title: name: Validate pull request title - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - uses: amannn/action-semantic-pull-request@v6 env: