From 51fd0bb6a34e045d41095f07acce78dbf473007e Mon Sep 17 00:00:00 2001 From: TheFlow Date: Mon, 20 Apr 2026 10:54:10 +1200 Subject: [PATCH] =?UTF-8?q?chore(license):=20Phase=20B=20follow-on=20?= =?UTF-8?q?=E2=80=94=20relicense=203=20scripts/=20source=20files=20from=20?= =?UTF-8?q?Apache=202.0=20to=20EUPL-1.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Missed by Phase B (d600f6ed) which swept src/ headers but not scripts/ headers. All 3 follow the Phase B precedent pattern: - scripts/check-attack-surface.js (the inst_084 validator hook itself) - scripts/sync-prod-audit-logs.js - scripts/migrate-to-schema-v3.js Two header formats encountered: - Standard Apache 2.0 JS block header (first two files): full block swap to EUPL-1.2 equivalent with Licence/British spelling and EC canonical URL. - Brief JSDoc-style reference (migrate-to-schema-v3.js): short-form swap with Licence reference + URL line. Other scripts/ files with Apache text references NOT in scope here: - scripts/relicense-apache-to-eupl.js (DATA: Apache patterns are search targets for the relicense tool itself) - scripts/fix-markdown-licences.js (DATA: Apache regex patterns for a migration script's find-and-replace) - scripts/migrate-licence-to-cc-by-4.js (DATA: Apache source patterns for a different migration workflow) - scripts/upload-document.js (DATA: Apache-2.0 is a valid SPDX tag for uploadable documents; retained as valid metadata option) Co-Authored-By: Claude Opus 4.7 (1M context) --- scripts/check-attack-surface.js | 14 +++++++------- scripts/migrate-to-schema-v3.js | 3 ++- scripts/sync-prod-audit-logs.js | 14 +++++++------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/scripts/check-attack-surface.js b/scripts/check-attack-surface.js index b7dd8162..b6f052a9 100755 --- a/scripts/check-attack-surface.js +++ b/scripts/check-attack-surface.js @@ -3,17 +3,17 @@ /* * Copyright 2025 John G Stroh * - * Licensed 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 + * Licensed under the European Union Public Licence, Version 1.2 (EUPL-1.2); + * you may not use this file except in compliance with the Licence. * - * http://www.apache.org/licenses/LICENSE-2.0 + * You may obtain a copy of the Licence at: + * https://interoperable-europe.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the Licence 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. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. */ /** diff --git a/scripts/migrate-to-schema-v3.js b/scripts/migrate-to-schema-v3.js index 8c457c30..230e0df6 100644 --- a/scripts/migrate-to-schema-v3.js +++ b/scripts/migrate-to-schema-v3.js @@ -7,7 +7,8 @@ * - Adds v3.0: securityClassification * * Copyright (c) 2025 John G Stroh. All rights reserved. - * Licensed under the Apache License, Version 2.0 + * Licensed under the European Union Public Licence, Version 1.2 (EUPL-1.2) + * https://interoperable-europe.ec.europa.eu/collection/eupl/eupl-text-eupl-12 */ const fs = require('fs'); diff --git a/scripts/sync-prod-audit-logs.js b/scripts/sync-prod-audit-logs.js index c9c3ba86..0bc66bbc 100755 --- a/scripts/sync-prod-audit-logs.js +++ b/scripts/sync-prod-audit-logs.js @@ -3,17 +3,17 @@ /* * Copyright 2025 John G Stroh * - * Licensed 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 + * Licensed under the European Union Public Licence, Version 1.2 (EUPL-1.2); + * you may not use this file except in compliance with the Licence. * - * http://www.apache.org/licenses/LICENSE-2.0 + * You may obtain a copy of the Licence at: + * https://interoperable-europe.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the Licence 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. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. */ /**