Skip to content

Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.

fix(container): run the runtime image as an unprivileged user (#163)

Deepak Jain (DJ)d34500f8baae
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1db53b69..6fccc0ef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,8 @@ All notable changes to SkillEvaluator are documented in this file.
### Fixed
+- Run the public Docker image as an unprivileged user, with writable default report and home directories.
+ Document UID/GID overrides for host-owned output mounts.
- Pin the HTML report Chart.js dependency and verify its integrity before browser execution.
- Preserve full Codex gateway model IDs in cloud environments, including E2B
diff --git a/Dockerfile b/Dockerfile
index a999a06d..65a025cd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,5 +17,11 @@ RUN python -m pip install --no-cache-dir --upgrade pip && \
python -m pip install --no-cache-dir ".[all]" && \
skillevaluator --help >/dev/null
+RUN useradd --create-home --uid 10001 --shell /usr/sbin/nologin skillevaluator && \
+ mkdir /app/reports && \
+ chown skillevaluator:skillevaluator /app/reports
+
+USER skillevaluator
+
ENTRYPOINT ["skillevaluator"]
CMD ["--help"]
diff --git a/docs/installation.mdx b/docs/installation.mdx
index 1ba858bb..bae5b5f0 100644
--- a/docs/installation.mdx
+++ b/docs/installation.mdx
@@ -98,6 +98,28 @@ docker run --rm \
skillevaluator:local validate /workspace/skills/simple --no-llm --tiers 1
```
+The image runs as the unprivileged `skillevaluator` user (UID 10001). Its home
+and `/app/reports` directory are writable, so default reports can be created
+without root. Input bind mounts can remain read-only.
+
+To save reports to a host directory on Linux, create that directory first and
+run with its owner's UID and GID. Docker's `--user` override preserves access to
+host-owned output paths without changing their permissions:
+
+```bash
+mkdir -p reports
+docker run --rm \
+ --user "$(id -u):$(id -g)" \
+ -e HOME=/tmp \
+ -v "$PWD/tests/fixtures/skills/simple:/workspace/skills/simple:ro" \
+ -v "$PWD/reports:/output" \
+ skillevaluator:local validate /workspace/skills/simple --no-llm --tiers 1 -o /output
+```
+
+The UID override also uses `/tmp` as a writable home for per-user caches. Provider
+credentials and access to external sandbox services still need to be configured
+for the selected runtime user.
+
The image does not bundle the external Semgrep, SkillSpector, or Gitleaks executables, so their required scanner evidence is incomplete and `validate` exits non-zero — the other checks still run and the report is still produced (see [Troubleshooting](#troubleshooting)). Tier 3 still requires credentials for the selected provider and agent at runtime — pass them into the container as environment variables when you get there.
</Tab>