|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +name: Release Auditing |
| 19 | + |
| 20 | +on: [push, pull_request] |
| 21 | + |
| 22 | +jobs: |
| 23 | + test: |
| 24 | + name: Audit Licenses |
| 25 | + runs-on: ubuntu-latest |
| 26 | + steps: |
| 27 | + # Checkout project |
| 28 | + - uses: actions/checkout@v4 |
| 29 | + |
| 30 | + # Check license headers |
| 31 | + - uses: erisu/apache-rat-action@555ae80334a535eb6c1f8920b121563a5a985a75 |
| 32 | + |
| 33 | + # Setup environment with node |
| 34 | + - uses: actions/setup-node@v4 |
| 35 | + with: |
| 36 | + node-version: 20 |
| 37 | + |
| 38 | + # Install node packages |
| 39 | + - name: npm install packages |
| 40 | + run: npm i |
| 41 | + |
| 42 | + # Check node package licenses |
| 43 | + - uses: erisu/license-checker-action@e929758f9416f30234ac454fc9054ca4b803871d |
| 44 | + with: |
| 45 | + license-config: 'licence_checker.yml' |
0 commit comments