From 4205cfd7124a540571d67c371382ee919abc48cc Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Fri, 20 Nov 2026 17:02:32 +0100 Subject: [PATCH 01/10] ci: scope workflow permissions and refresh action pins Signed-off-by: Simon Heimler --- .github/workflows/main.yml | 23 +++++++++++++---------- .github/workflows/release.yml | 8 +++++--- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 503334c..7687a79 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,21 +6,24 @@ on: pull_request: branches: [main] +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout repo - uses: actions/checkout@v7 + - name: Checkout repo + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Setup Node.js - uses: actions/setup-node@v7 - with: - node-version: '24' + - name: Setup Node.js + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: "24" - - name: Install NPM dependencies - run: npm ci + - name: Install NPM dependencies + run: npm ci - - name: Build - run: npm run build + - name: Build + run: npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53fc165..5b97200 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ name: Publish Package to NPMJS.org on: - workflow_dispatch: + workflow_dispatch: +permissions: {} + jobs: publish-to-npmjs: permissions: @@ -9,9 +11,9 @@ jobs: runs-on: ubuntu-latest environment: npmjs:@sap/openapi-extensions steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: actions/setup-node@v7 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: "24" # registry-url is required for releasing packages From 01cffe893f57bfd7e9ad05beb054099080893daa Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Mon, 23 Nov 2026 14:16:46 +0100 Subject: [PATCH 02/10] ci: harden Actions and use Node 26 Signed-off-by: Simon Heimler --- .github/CODEOWNERS | 4 ++++ .github/dependabot.yml | 6 ++++++ .github/workflows/main.yml | 8 +++++--- .github/workflows/release.yml | 12 +++++++----- .github/workflows/workflow-lint.yml | 27 +++++++++++++++++++++++++++ package-lock.json | 3 +++ package.json | 3 +++ 7 files changed, 55 insertions(+), 8 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/workflow-lint.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..ef6f056 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,4 @@ +# Review owners for CI and build configuration. +/.github/ @Fannon +/package.json @Fannon +/package-lock.json @Fannon diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ca79ca5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7687a79..309ce7c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,6 @@ on: permissions: contents: read - jobs: build: runs-on: ubuntu-latest @@ -17,13 +16,16 @@ jobs: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: "24" - + node-version: "26.13.1" - name: Install NPM dependencies run: npm ci - name: Build run: npm run build + permissions: + contents: read diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b97200..f103812 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,8 @@ name: Publish Package to NPMJS.org on: workflow_dispatch: -permissions: {} +permissions: + contents: read jobs: publish-to-npmjs: @@ -13,15 +14,15 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: "24" + node-version: "26.13.1" # registry-url is required for releasing packages registry-url: "https://registry.npmjs.org" - - name: Install latest npm cli - run: npm install -g npm@latest - + package-manager-cache: false - run: npm ci - name: Publish package @@ -29,3 +30,4 @@ jobs: # --access public is only hard required for the initial release, but it doesn't hurt having it setup # npm version >=11.5.1 required for trusted publisher run: npm publish --provenance --access public + if: github.ref == 'refs/heads/main' diff --git a/.github/workflows/workflow-lint.yml b/.github/workflows/workflow-lint.yml new file mode 100644 index 0000000..3ceb6cf --- /dev/null +++ b/.github/workflows/workflow-lint.yml @@ -0,0 +1,27 @@ +name: Workflow Security + +on: + pull_request: + paths: + - ".github/**" + push: + branches: [main] + paths: + - ".github/**" + +permissions: + contents: read + +jobs: + workflow-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Check workflow security + run: pipx run --spec zizmor==1.33.1 zizmor --offline --no-progress --format github --min-severity medium .github/workflows + permissions: + contents: read diff --git a/package-lock.json b/package-lock.json index 374e201..d376717 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,9 @@ "prettier": "^3.9.9", "tsx": "^4.20.6", "typescript": "7.0.2" + }, + "engines": { + "node": ">=24.22.1" } }, "node_modules/@esbuild/aix-ppc64": { diff --git a/package.json b/package.json index a90670e..b0b49ae 100644 --- a/package.json +++ b/package.json @@ -26,5 +26,8 @@ "prettier": "^3.9.9", "tsx": "^4.20.6", "typescript": "7.0.2" + }, + "engines": { + "node": ">=24.22.1" } } From a389628710afd34b4356dbd989334739bfe2e05f Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Mon, 23 Nov 2026 14:58:17 +0100 Subject: [PATCH 03/10] ci: retain original permission ceilings and remove redundant grants Signed-off-by: Simon Heimler --- .github/workflows/main.yml | 2 -- .github/workflows/workflow-lint.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 309ce7c..debf0fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,5 +27,3 @@ jobs: - name: Build run: npm run build - permissions: - contents: read diff --git a/.github/workflows/workflow-lint.yml b/.github/workflows/workflow-lint.yml index 3ceb6cf..7c0fe8d 100644 --- a/.github/workflows/workflow-lint.yml +++ b/.github/workflows/workflow-lint.yml @@ -23,5 +23,3 @@ jobs: - name: Check workflow security run: pipx run --spec zizmor==1.33.1 zizmor --offline --no-progress --format github --min-severity medium .github/workflows - permissions: - contents: read From 5263cbf3e0563b37252a75710bae6825a55c0f1c Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Mon, 23 Nov 2026 16:05:39 +0100 Subject: [PATCH 04/10] ci: align package tooling on Node 26 Signed-off-by: Simon Heimler --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index d376717..e520425 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "typescript": "7.0.2" }, "engines": { - "node": ">=24.22.1" + "node": ">=26.13.1" } }, "node_modules/@esbuild/aix-ppc64": { diff --git a/package.json b/package.json index b0b49ae..d34980a 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,6 @@ "typescript": "7.0.2" }, "engines": { - "node": ">=24.22.1" + "node": ">=26.13.1" } } From 904be2394bfc22ad0dc075427075ba60d4abd0dd Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Mon, 23 Nov 2026 17:18:14 +0100 Subject: [PATCH 05/10] ci: apply review hardening and allow Node patch updates Signed-off-by: Simon Heimler --- .github/workflows/main.yml | 3 +-- .github/workflows/release.yml | 2 +- .github/workflows/workflow-lint.yml | 4 ++++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index debf0fa..e1ac514 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,13 +15,12 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: persist-credentials: false - name: Setup Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: "26.13.1" + node-version: "26" - name: Install NPM dependencies run: npm ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f103812..d00f8dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: persist-credentials: false - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: "26.13.1" + node-version: "26" # registry-url is required for releasing packages registry-url: "https://registry.npmjs.org" diff --git a/.github/workflows/workflow-lint.yml b/.github/workflows/workflow-lint.yml index 7c0fe8d..7d59518 100644 --- a/.github/workflows/workflow-lint.yml +++ b/.github/workflows/workflow-lint.yml @@ -23,3 +23,7 @@ jobs: - name: Check workflow security run: pipx run --spec zizmor==1.33.1 zizmor --offline --no-progress --format github --min-severity medium .github/workflows + - name: Check workflow syntax + uses: docker://rhysd/actionlint:1.7.12@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667 + with: + args: -shellcheck= -pyflakes= From da4eadc1df6a184bb4040ea86289418bc651aa29 Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Mon, 23 Nov 2026 17:45:58 +0100 Subject: [PATCH 06/10] build: declare Node 26 minimum without a patch-specific floor Signed-off-by: Simon Heimler --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index e520425..63cec06 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "typescript": "7.0.2" }, "engines": { - "node": ">=26.13.1" + "node": ">=26" } }, "node_modules/@esbuild/aix-ppc64": { diff --git a/package.json b/package.json index d34980a..1e150f6 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,6 @@ "typescript": "7.0.2" }, "engines": { - "node": ">=26.13.1" + "node": ">=26" } } From 810838a913f0fc4d106917e32a7aad19df08527c Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Tue, 24 Nov 2026 13:13:33 +0100 Subject: [PATCH 07/10] fix: preserve consumer compatibility independently of CI runtime Signed-off-by: Simon Heimler --- CHANGELOG.md | 2 ++ README.md | 3 +++ package-lock.json | 3 --- package.json | 3 --- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 038ad1b..db373f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed +- CI and schema generation use Node.js 26 without imposing a new Node.js minimum on consumers of the published schema package. + - Project renamed to "OpenAPI Extensions for SAP Ecosystem" and so the GitHub repository and NPM package accordingly. ## [[0.16.0](https://github.com/SAP/openapi-extensions/releases/tag/v0.16.0)] - 2026-09-30 diff --git a/README.md b/README.md index ab96226..59ee8d6 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ No specific tools are needed to use these schema files. Contributors to this repository will need to run the generator, which requires Node.js to be installed. +The published npm package exports JSON schemas through a small JavaScript wrapper and has no production dependencies. +CI and schema generation use Node.js 26; consumers do not inherit that tooling requirement. + ## Known Issues No known issues. diff --git a/package-lock.json b/package-lock.json index 63cec06..374e201 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,9 +15,6 @@ "prettier": "^3.9.9", "tsx": "^4.20.6", "typescript": "7.0.2" - }, - "engines": { - "node": ">=26" } }, "node_modules/@esbuild/aix-ppc64": { diff --git a/package.json b/package.json index 1e150f6..a90670e 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,5 @@ "prettier": "^3.9.9", "tsx": "^4.20.6", "typescript": "7.0.2" - }, - "engines": { - "node": ">=26" } } From 82142b47786c9318ae14cdeaa3eec3b3e711811f Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Thu, 26 Nov 2026 08:57:41 +0100 Subject: [PATCH 08/10] chore: complete and comment npm install configuration Signed-off-by: Simon Heimler --- .github/CODEOWNERS | 3 +++ .npmrc | 13 +++++++++++++ package.json | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .npmrc diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ef6f056..ce8764d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2,3 +2,6 @@ /.github/ @Fannon /package.json @Fannon /package-lock.json @Fannon + +# Review the installer policy with the corresponding package owners. +/.npmrc @Fannon diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..739528d --- /dev/null +++ b/.npmrc @@ -0,0 +1,13 @@ +# Keep dependency installs locked and save future additions as exact versions. +package-lock=true +save-exact=true + +# Enforce declared runtime requirements and verify registry TLS. +engine-strict=true +strict-ssl=true + +# Retain trusted project publish hooks; reject unreviewed dependency install scripts. +strict-allow-scripts=true + +# Delay newly published package versions during dependency resolution. +min-release-age=2 diff --git a/package.json b/package.json index a90670e..f020dbd 100644 --- a/package.json +++ b/package.json @@ -26,5 +26,16 @@ "prettier": "^3.9.9", "tsx": "^4.20.6", "typescript": "7.0.2" + }, + "allowScripts": { + "esbuild@0.28.2": false, + "fsevents@2.3.3": false + }, + "devEngines": { + "packageManager": { + "name": "npm", + "version": ">=11.20.0", + "onFail": "error" + } } } From cde20b264f61dca7068fb178502581165e063677 Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Thu, 26 Nov 2026 12:19:02 +0100 Subject: [PATCH 09/10] chore: complete npm installation safeguards Signed-off-by: Simon Heimler --- .npmrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.npmrc b/.npmrc index 739528d..f4331a5 100644 --- a/.npmrc +++ b/.npmrc @@ -11,3 +11,20 @@ strict-allow-scripts=true # Delay newly published package versions during dependency resolution. min-release-age=2 + +# Keep installs reproducible. +lockfile-version=3 + +# Enforce engine and peer requirements while retaining documented exceptions. +strict-peer-deps=true + +# Preserve the publish hook; strict dependency-script decisions are enforced by npm >=11.20. +ignore-scripts=false + +# Keep installer output quiet and registry requests bounded. +fund=false +update-notifier=false +fetch-retries=5 +fetch-timeout=60000 + +# Preserve prepublishOnly; strict dependency-script decisions remain enforced. From d2600402c7eaef9ada876cd68df280fd78c79f71 Mon Sep 17 00:00:00 2001 From: Simon Heimler Date: Thu, 26 Nov 2026 14:42:57 +0100 Subject: [PATCH 10/10] ci: remove direct workflow lint tooling Signed-off-by: Simon Heimler --- .github/workflows/workflow-lint.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/workflow-lint.yml diff --git a/.github/workflows/workflow-lint.yml b/.github/workflows/workflow-lint.yml deleted file mode 100644 index 7d59518..0000000 --- a/.github/workflows/workflow-lint.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Workflow Security - -on: - pull_request: - paths: - - ".github/**" - push: - branches: [main] - paths: - - ".github/**" - -permissions: - contents: read - -jobs: - workflow-lint: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - - name: Check workflow security - run: pipx run --spec zizmor==1.33.1 zizmor --offline --no-progress --format github --min-severity medium .github/workflows - - name: Check workflow syntax - uses: docker://rhysd/actionlint:1.7.12@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667 - with: - args: -shellcheck= -pyflakes=