From 20b8f51791c5acdb3908d770cef00b85f7bf0cb5 Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Sun, 8 Feb 2026 12:05:53 +0100 Subject: [PATCH] chore(license): add MIT LICENSE and SPDX headers to source files --- LICENSE | 21 +++++++++++++++++++++ scripts/create-pca.js | 2 ++ src/azure/client-auth.js | 2 ++ src/azure/index.js | 2 ++ src/azure/pca-auth.js | 2 ++ src/cli.js | 2 ++ src/devops/index.js | 2 ++ src/graph/app.js | 2 ++ src/graph/auth.js | 2 ++ src/graph/index.js | 2 ++ src/graph/sp.js | 2 ++ src/index.js | 2 ++ src/markdown.js | 2 ++ 13 files changed, 45 insertions(+) create mode 100644 LICENSE mode change 100755 => 100644 scripts/create-pca.js mode change 100755 => 100644 src/cli.js diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b37d7bf --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Sławomir Koszewski + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/scripts/create-pca.js b/scripts/create-pca.js old mode 100755 new mode 100644 index 87f3b9f..01547ed --- a/scripts/create-pca.js +++ b/scripts/create-pca.js @@ -1,4 +1,6 @@ #!/usr/bin/env node +// SPDX-License-Identifier: MIT + import fs from "node:fs"; import os from "node:os"; diff --git a/src/azure/client-auth.js b/src/azure/client-auth.js index bc83360..f86cc7c 100644 --- a/src/azure/client-auth.js +++ b/src/azure/client-auth.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + import { DefaultAzureCredential, ClientSecretCredential, DeviceCodeCredential } from "@azure/identity"; export async function getCredential(credentialType, options) { diff --git a/src/azure/index.js b/src/azure/index.js index 050df6e..33680f4 100644 --- a/src/azure/index.js +++ b/src/azure/index.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + /** * @module azure * diff --git a/src/azure/pca-auth.js b/src/azure/pca-auth.js index 86048a2..6d36c87 100644 --- a/src/azure/pca-auth.js +++ b/src/azure/pca-auth.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + import open, { apps } from "open"; import fs from "node:fs"; diff --git a/src/cli.js b/src/cli.js old mode 100755 new mode 100644 index b115ea0..1fbe9f7 --- a/src/cli.js +++ b/src/cli.js @@ -1,4 +1,6 @@ #!/usr/bin/env node +// SPDX-License-Identifier: MIT + import { parseArgs } from "node:util"; import jmespath from "jmespath"; diff --git a/src/devops/index.js b/src/devops/index.js index 5bf2101..a6b66e7 100644 --- a/src/devops/index.js +++ b/src/devops/index.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + /** * A DevOps helpers module. */ diff --git a/src/graph/app.js b/src/graph/app.js index 0ba0d22..f7e0c89 100644 --- a/src/graph/app.js +++ b/src/graph/app.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + /** * Get an Azure application by its display name. * diff --git a/src/graph/auth.js b/src/graph/auth.js index e964124..c346e30 100644 --- a/src/graph/auth.js +++ b/src/graph/auth.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + import { loginInteractive } from "../azure/index.js"; import { Client } from "@microsoft/microsoft-graph-client"; diff --git a/src/graph/index.js b/src/graph/index.js index 5db7376..c85abf8 100644 --- a/src/graph/index.js +++ b/src/graph/index.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + export * from "./auth.js"; export * from "./app.js"; export * from "./sp.js"; diff --git a/src/graph/sp.js b/src/graph/sp.js index dbce258..c690c2e 100644 --- a/src/graph/sp.js +++ b/src/graph/sp.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + export async function getServicePrincipal(client, appId) { const result = await client .api("/servicePrincipals") diff --git a/src/index.js b/src/index.js index 4ccda9a..4545ccb 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + import { readFile } from "node:fs/promises"; import os from "node:os"; import path from "node:path"; diff --git a/src/markdown.js b/src/markdown.js index e922ccb..c44afb5 100644 --- a/src/markdown.js +++ b/src/markdown.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + function formatCell(value) { const text = value == null ? ""