Fix morgan security alert, update GitHub Actions, add test suite#11
Merged
Merged
Conversation
- Bump morgan to ^1.11.0 (fixes CVE-2026-5078 / GHSA-4vj7-5mj6-jm8m, log injection via :remote-user token) — supersedes dependabot PR #10 - Update workflow actions: checkout v7, setup-node v6, docker/login-action v4, docker/metadata-action v6, docker/build-push-action v7 - Add test job to CI running before the docker build/push job - Add .github/dependabot.yml for weekly npm and github-actions updates - Make server.js testable: export app and getNetworkInterfaces, only listen when run directly - Add test suite (node:test + supertest) covering /, /health, 404 and getNetworkInterfaces — 9 tests, 94% line coverage on server.js - Dockerfile: npm ci --omit=dev, add .dockerignore - package.json: real test/test:coverage scripts, engines >=20 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019U9qu3XMwr6kDvkxkt5eJR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
log injection via :remote-user token) — supersedes dependabot PR Bump morgan from 1.10.1 to 1.11.0 #10
docker/metadata-action v6, docker/build-push-action v7
listen when run directly
getNetworkInterfaces — 9 tests, 94% line coverage on server.js
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_019U9qu3XMwr6kDvkxkt5eJR