Skip to content

security: harden Docker image and fix CVEs flagged by Docker Hub#3

Merged
prasadvamer merged 1 commit intomainfrom
security/harden-docker-image
Mar 30, 2026
Merged

security: harden Docker image and fix CVEs flagged by Docker Hub#3
prasadvamer merged 1 commit intomainfrom
security/harden-docker-image

Conversation

@prasadvamer
Copy link
Copy Markdown
Owner

  • Upgrade base image from ubuntu:22.04 to ubuntu:24.04
  • Bump GitHub Actions runner to 2.333.1 with SHA256 verification
  • Bump Docker Compose to 2.40.3 with SHA256 verification
  • Pin Node.js to v22 LTS via Volta
  • Replace NOPASSWD sudo with gosu for privilege dropping
  • Restrict git safe.directory from wildcard to specific paths
  • Replace chmod 666 on docker.sock with GID-matching + chmod 660
  • Add RUNNER_TOKEN_FILE support for file-based secrets
  • Add HEALTHCHECK, OCI labels, and apt cache cleanup
  • Add Makefile and test suite for CI validation
  • Update tests to match hardened configuration

- Upgrade base image from ubuntu:22.04 to ubuntu:24.04
- Bump GitHub Actions runner to 2.333.1 with SHA256 verification
- Bump Docker Compose to 2.40.3 with SHA256 verification
- Pin Node.js to v22 LTS via Volta
- Replace NOPASSWD sudo with gosu for privilege dropping
- Restrict git safe.directory from wildcard to specific paths
- Replace chmod 666 on docker.sock with GID-matching + chmod 660
- Add RUNNER_TOKEN_FILE support for file-based secrets
- Add HEALTHCHECK, OCI labels, and apt cache cleanup
- Add Makefile and test suite for CI validation
- Update tests to match hardened configuration
@prasadvamer prasadvamer force-pushed the security/harden-docker-image branch from 325bd4f to 58fbaa4 Compare March 30, 2026 09:29
@prasadvamer prasadvamer merged commit d290dd0 into main Mar 30, 2026
1 check passed
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