MuhammedMagdyy/Taskora-API

https://github.com/MuhammedMagdyy/Taskora-API

Scanned on Mar 16, 2026

1 High
4 Medium
249 Low

AI Assessment

VERDICT

Based on automated scanner findings, this project shows solid baseline security and dependency management but needs attention to code quality standards before production deployment. The high-severity Docker misconfiguration and 249 low-level code quality issues suggest the codebase requires cleanup and hardening.

TOP RISKS

→ Dockerfile was flagged for running container as root user (DS-0002). This is a privilege escalation risk in containerized environments.

→ Dockerfile lacks a HEALTHCHECK directive (DS-0026), limiting deployment orchestration capabilities.

→ Duplicated code blocks detected across src/templates/otp.html and src/services/github.service.ts indicate maintenance risk and potential inconsistency.

→ No test coverage detected in the repository, creating verification gap for code reliability.

→ 120 formatting violations and 54 import-type issues suggest inconsistent code standards across the codebase.

WHAT TO FIX FIRST

Fix the Dockerfile to run as non-root user instead of root (DS-0002 in Dockerfile). This single change addresses the only high-severity finding and significantly improves container security posture. Also add a HEALTHCHECK directive while modifying the Dockerfile.

NOTES

The absence of security issues in dependencies and secrets management is positive. However, the 249 low-priority findings are primarily style/formatting matters that won't cause runtime failures but indicate the codebase needs linting standardization. Verify the duplicated code detection against actual source to determine if blocks are genuinely redundant or false positives. The lack of test detection may reflect how tests are organized rather than their absence—verify this against your testing structure.

fix-prompt.md

Category Breakdown

Security0%Secrets & Credentials0%Dependencies0%Code Quality0%Best Practices0%
240/300
Security2 findings
200/200
Secrets & Credentials
150/150
Dependencies
92/100
Code Quality249 findings
93/100
Best Practices3 findings

Findings(254 in 21 groups)

Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile. | Fix: Add 'USER <non root user name>' line to the Dockerfile | Target: Dockerfile

Affected files

Dockerfile

Duplicate found between src/templates/otp.html:1 and src/templates/verify-email.html:1. Consider extracting shared logic into a reusable function or module.

Affected files

src/templates/otp.htmlL1
src/templates/otp.htmlL55
src/services/github.service.tsL52
src/services/refreshToken.service.tsL83
src/middlewares/isAuth.middleware.tsL6
src/controllers/auth.controller.tsL73
src/database/prisma/migrations/20241223234956_models_and_relations/migration.sqlL42
src/utils/validations/project.tsL19

Biome rule: lint/a11y/useHtmlLang

Affected files

unknown
unknown

No test directory or test files were found. Automated tests are critical for maintaining code quality and preventing regressions.

Affected files

unknown

Biome rule: format

Affected files

unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown

and 100 more files...

Biome rule: lint/style/useImportType

Affected files

unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown

and 34 more files...

Biome rule: lint/complexity/noThisInStatic

Affected files

unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown

and 1 more file...

Biome rule: lint/complexity/noImportantStyles

Affected files

unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown

Biome rule: lint/complexity/noStaticOnlyClass

Affected files

unknown
unknown
unknown
unknown
unknown

Biome rule: lint/complexity/noUselessTernary

Affected files

unknown
unknown
unknown
unknown

Share your ShipScanner

Show the world your code quality. Your report has a beautiful preview image built in.

Embed Trust Badge

Show your code quality score in your README. The badge updates automatically every time you re-scan.

README.md
ShipScanner: B 668
[![ShipScanner: B 668](https://shipscanner.dev/api/badge/cmmt7yhss0003k004dchhxbis)](https://shipscanner.dev/report/cmmt7yhss0003k004dchhxbis)