cbs-consulting/stack-sentinel
Sets up @cbs-consulting/stack-sentinel in SAP UI5, CAP and Node.js projects: the weekly scan pipeline on GitHub Actions or Azure DevOps, Teams reports, fix pull requests and ignore rules.
Changelog
What changed in each release of @cbs-consulting/stack-sentinel, newest
first. Add your change under "Unreleased" in the same pull request; a check
fails otherwise, unless the pull request has the label "no changelog". To
release, raise the version in package.json and rename "Unreleased" to that
version and the date. The tests fail while the version in package.json has
no entry here, and the Release workflow publishes the entry as the GitHub
release notes.
Unreleased
- New agent skill for AI coding agents such as Claude Code, Codex and GitHub
Copilot. It sets stack-sentinel up in a project: a first scan, the pipeline
example, and a short list of the variables, secrets and permissions the
user sets. It also explains why a run sent no card or opened no fix pull
request. The repository is now an agent plugin (
plugin.json), so the skill installs from the cbs Agentic Marketplace with/plugin install stack-sentinel@cbs-consulting.
0.4.0 - 2026-11-03
-
SENTINEL_DASHBOARD_ENABLED=truekeeps one GitHub issue or Azure DevOps work item per repository up to date with the latest findings, the open fix pull requests and the ignored findings. -
New check
license: the licenses of the packages inpackage-lock.jsonare checked against a policy. Strong copyleft (AGPL, GPL, SSPL, EUPL, OSL) is an error by default;license.allowturns it into an allow list. -
The title of an
npm-auditfix pull request names the versions npm moved to, not the lowest fixed versions the advisories name, which npm may never have published (lodash 4.17.24, where npm moves to 4.18.0). -
Fix pull requests carry release notes: the SAPUI5, Node.js and CAP change logs, and for vulnerable npm packages the advisories they fix and the GitHub release notes between the old and the new version.
-
minReleaseAgeDays(SENTINEL_MIN_RELEASE_AGE_DAYS): UI5 patches and npm packages are only recommended and moved to once they have been published that many days. UI5 patches are dated from the SAP CDN, and npm gets--before. Off by default. -
Ignore rules: findings listed under
"ignore"in the config file, by check, file, package, version, advisory or message, are left out of notifications, the exit code and fix pull requests until the rule'suntildate. An expired rule, and one that matches nothing, is reported. -
Two opt-in kinds of fix pull request that run npm to update
package-lock.json(--package-lock-only --ignore-scripts, in a temporary folder):capmoves CAP packages on an old major to the current one, as a draft, andnpm-auditmoves vulnerable packages thatnpm audit fixcan move, raising a range inpackage.jsonthat pins them below the fix. Both work with npm workspaces. Turn them on withSENTINEL_FIX_GROUPS. -
SENTINEL_FIX_AUTO_MERGE=patch(orall) turns on auto-merge for fix pull requests that only move to newer patches, so they merge once their required checks pass. -
A Cloud Foundry app that declares no Node.js version gets
"engines.node"for the line the buildpack keeps longest in the Node.js fix pull request. -
The fix for the UI5 version pins a local Fiori preview (fiori-tools-proxy) that loads the latest release to the version the app builds with.
-
node-versionalso reads the Node.js version that CI pipelines set up (GitHub'sactions/setup-node, Azure Pipelines'NodeToolandUseNode) and thenodeimage Dockerfiles build on, and fix pull requests move them. -
Fix pull requests, much like Dependabot: with
SENTINEL_FIX_MODE=prthe scheduled run on GitHub Actions or Azure DevOps opens one pull request per kind of fix, and keeps it up to date. It changes UI5 versions inui5.yaml, bootstrap URLs andmanifest.json, Node.js versions in"engines.node",.nvmrcand.node-version, and removes npm overrides that are no longer needed.SENTINEL_FIX_MODE=applychanges the scanned files instead, andSENTINEL_FIX_GROUPSchooses which kinds of fix are made. Findings that can be fixed carry afixin the JSON report. -
Add contributing guide, code of conduct, security policy, issue and pull request templates, and Dependabot updates for GitHub Actions and the dev container.
-
Releases have a changelog.
CHANGELOG.mdships in the npm package, and each version's entry is its GitHub release notes.
0.3.3 - 2026-10-19
- The npm-audit check reports overrides in
package.jsonthat are no longer needed, as info: overrides whose package every dependent already allows at the installed version, and overrides for packages that are not installed. - When only the lockfile stands between a vulnerable package and its fix, the
action says so:
npm audit fixis enough and no override is needed.
0.3.2 - 2026-10-19
- The npm-audit check names the direct dependency each vulnerable package
comes in through (
details.introducedByin the JSON report). Its action depends on the version ranges along the way:npm audit fix, raising the version inpackage.json, updating the direct dependency, adding an override, or waiting for a release of the package that bundles it.
0.3.1 - 2026-10-19
- Published to npm as
@cbs-consulting/stack-sentinel. Pipelines install@cbs-consulting/stack-sentinel@latestinstead ofgithub:cbs-consulting/stack-sentinel#stable. - Releases are staged on npm and go live only when a maintainer approves them.
- The license is Apache-2.0.
- No changes to the checks.
0.3.0 - 2026-10-19
- First release.