You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2024/11/19 07:08:41 UTC
(cordova-js) branch master updated: chore(ci): Add licence checker workflow (#286)
This is an automated email from the ASF dual-hosted git repository.
dpogue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-js.git
The following commit(s) were added to refs/heads/master by this push:
new fc467e43 chore(ci): Add licence checker workflow (#286)
fc467e43 is described below
commit fc467e432449bd4474ac180c3e797c38e5810e0f
Author: Darryl Pogue <da...@dpogue.ca>
AuthorDate: Mon Nov 18 23:08:35 2024 -0800
chore(ci): Add licence checker workflow (#286)
---
.github/workflows/ci.yml | 2 +-
.github/workflows/release-audit.yml | 52 +++++++++++++++++++++++++++++++
.ratignore | 5 ++-
licence_checker.yml | 61 +++++++++++++++++++++++++++++++++++++
4 files changed, 118 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0efaf9da..859fe8c8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,7 +20,7 @@ name: Node CI
on:
push:
branches-ignore:
- - 'dependabot/*'
+ - 'dependabot/**'
pull_request:
branches:
- '*'
diff --git a/.github/workflows/release-audit.yml b/.github/workflows/release-audit.yml
new file mode 100644
index 00000000..c03fb4d6
--- /dev/null
+++ b/.github/workflows/release-audit.yml
@@ -0,0 +1,52 @@
+# 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.
+
+name: Release Auditing
+
+on:
+ push:
+ branches-ignore:
+ - 'dependabot/**'
+ pull_request:
+ branches:
+ - '*'
+
+jobs:
+ test:
+ name: Audit Licenses
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout project
+ - uses: actions/checkout@v4
+
+ # Check license headers
+ - uses: erisu/apache-rat-action@555ae80334a535eb6c1f8920b121563a5a985a75
+
+ # Setup environment with node
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 20
+
+ # Install node packages
+ - name: npm install packages
+ run: npm i
+
+ # Check node package licenses
+ - uses: erisu/license-checker-action@e929758f9416f30234ac454fc9054ca4b803871d
+ with:
+ license-config: 'licence_checker.yml'
+
diff --git a/.ratignore b/.ratignore
index 9e4c1e1b..1075847d 100644
--- a/.ratignore
+++ b/.ratignore
@@ -1 +1,4 @@
-appveyor.yml
+\.(.*)
+coverage
+fixtures
+node_modules
diff --git a/licence_checker.yml b/licence_checker.yml
new file mode 100644
index 00000000..5fb1ecf0
--- /dev/null
+++ b/licence_checker.yml
@@ -0,0 +1,61 @@
+# 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.
+
+# Compiled list of allowed 3RD PARTY LICENSES from:
+#
+# ASF CATEGORY A: WHAT CAN WE INCLUDE IN AN ASF PROJECT
+# https://www.apache.org/legal/resolved.html#category-a
+#
+# Licenses converted into the SPDX standardized short identifier format.
+# https://spdx.org/licenses/
+allowed-licenses:
+ - 0BSD
+ - AFL-3.0
+ - Apache-1.1
+ - Apache-2.0
+ - APAFML
+ - BlueOak-1.0.0
+ - BSD-2-Clause
+ - BSD-3-Clause
+ - BSD-3-Clause-LBNL
+ - BSL-1.0
+ - CC-PDDC
+ - CC0-1.0
+ - EPICS
+ - HPND
+ - ICU
+ - ISC
+ - MIT
+ - MIT-0
+ - MS-PL
+ - MulanPSL-2.0
+ - NCSA
+ - OGL-UK-3.0
+ - PHP-3.01
+ - PostgreSQL
+ - PSF-2.0
+ - SMLNJ
+ - Unicode-DFS-2016
+ - Unlicense
+ - UPL-1.0
+ - W3C
+ - WTFPL
+ - X11
+ - Xnet
+ - Zlib
+ - ZPL-2.0
+ - Python-2.0
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org