|
| 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: |
| 21 | + push: |
| 22 | + branches-ignore: |
| 23 | + - 'dependabot/**' |
| 24 | + pull_request: |
| 25 | + branches: |
| 26 | + - '*' |
| 27 | + |
| 28 | +permissions: |
| 29 | + contents: read |
| 30 | + |
| 31 | +jobs: |
| 32 | + test: |
| 33 | + name: Audit Licenses |
| 34 | + runs-on: ubuntu-latest |
| 35 | + steps: |
| 36 | + # Checkout project |
| 37 | + - uses: actions/checkout@v4 |
| 38 | + |
| 39 | + # Check license headers (v1.2.0) |
| 40 | + - uses: erisu/apache-rat-action@3127a8c18f3bb10e91c60e835144085b31c5c463 |
| 41 | + |
| 42 | + # Setup environment with node |
| 43 | + - uses: actions/setup-node@v4 |
| 44 | + with: |
| 45 | + node-version: 20 |
| 46 | + |
| 47 | + # Install node packages |
| 48 | + - name: npm install packages |
| 49 | + run: npm i |
| 50 | + |
| 51 | + # Check node package licenses (v2.0.0) |
| 52 | + - uses: erisu/license-checker-action@1c222d0c2f5898a4c40b8bd6fd6888650bd6f68a |
| 53 | + with: |
| 54 | + license-config: 'licence_checker.yml' |
| 55 | + include-asf-category-a: true |
0 commit comments