Skip to content

chore: hygiene cluster — LICENSE + audit-fail + enforcing verify-netcup#43

Open
avrabe wants to merge 1 commit intomainfrom
chore/hygiene-cluster
Open

chore: hygiene cluster — LICENSE + audit-fail + enforcing verify-netcup#43
avrabe wants to merge 1 commit intomainfrom
chore/hygiene-cluster

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented May 1, 2026

Three small wave-1 fixes:

🤖 Generated with Claude Code

…ify-netcup

Three small wins from `docs/agent-fleet/bugs.md`:

## #34 — `LICENSE` file added
`package.json` declared MIT but the repo carried no LICENSE at root.
Standard MIT text added with copyright "PulseEngine, 2026". Wave-1
supply-chain reviewer's finding.

## #23 — `npm audit` no longer swallows findings
`.github/workflows/ci.yml` had `npm audit --audit-level=moderate || true`,
which silently kept builds green even with known CVEs. Dropped the `|| true`
so moderate-or-higher findings actually fail the gate. Wave-1 supply-chain.

## #33 — `verify-netcup-deployment.sh` is now enforcing
The previous version's checks were `echo` lines that never exited non-zero
unless core files were missing. Wave-1 DevOps agent flagged it as theatre.
Rewritten with `set -euo pipefail`, `fail`/`ok` helpers, env-var presence
check (canonical AND legacy names), and `WEBHOOK_SECRET != "development"`
guard so a misconfigured `.env` never reaches `pm2 start`.

## Test plan
- [x] 834 tests pass
- [x] eslint clean
- [x] `bash -n verify-netcup-deployment.sh` clean
- [ ] After merge: `npm audit` would fail the next CI run if a moderate
      finding exists in the lockfile.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant