Skip to content

fix(docker): install git for repository scans#78

Merged
keshprad merged 2 commits into
NVIDIA:mainfrom
medhdj:fix/docker-install-git
Jun 16, 2026
Merged

fix(docker): install git for repository scans#78
keshprad merged 2 commits into
NVIDIA:mainfrom
medhdj:fix/docker-install-git

Conversation

@medhdj

@medhdj medhdj commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Issue

The README documents scanning remote Git repositories from the Docker image, but the runtime image is based on python:3.12-slim-bookworm and does not include Git. Running a command such as:

docker run --rm -v "$PWD:/scan" skillspector scan https://github.com/JuliusBrussee/caveman --no-llm

fails with:

Git is not installed. Please install git to scan repositories.

Solution

Install git in the final runtime stage of the Docker image. The same layer also explicitly installs ca-certificates for HTTPS repository cloning, uses --no-install-recommends, and removes the apt package lists to limit image overhead.

Verification

  • Built the image with make docker-build.
  • Confirmed git version 2.39.5 is available in the container.
  • Confirmed skillspector --version reports SkillSpector v2.1.4.
  • Successfully cloned and scanned https://github.com/JuliusBrussee/caveman from the container.

Signed-off-by: medhdj <medhdjdevs@gmail.com>
@keshprad

keshprad commented Jun 15, 2026

Copy link
Copy Markdown
Member

LGTM. The Docker runtime image needs git for repository URL scans, and this installs it in the final image with --no-install-recommends plus apt list cleanup. ca-certificates is also appropriate for HTTPS clones.

Testing internally... Then I will merge

@keshprad
keshprad merged commit ac9a03c into NVIDIA:main Jun 16, 2026
keshprad added a commit that referenced this pull request Jun 16, 2026
Refresh the public SkillSpector snapshot from the internal OSS release branch
release/oss-2026-06-15 at a7ebb82733fba54512c546fed08cd17a2cbc4a17.

Changes:
- Correct the documented bundled model registry path for SKILLSPECTOR_MODEL_REGISTRY.
- Add explicit returns in Docker smoke helper functions.

Notes:
- Rebased onto latest GitHub main after #78 merged.
- Supersedes the original provider-registry documentation PR #30.

Verification:
- PATH="$PWD/.venv/bin:$PATH" ./scripts/create-oss-release.sh release/oss-2026-06-15
  - includes make test-unit: 600 passed, 11 skipped, 22 deselected
- git diff --check origin/main..HEAD
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.

2 participants