{"id":35885512,"url":"https://github.com/git-stunts/docker-guard","last_synced_at":"2026-01-16T01:03:26.771Z","repository":{"id":332152144,"uuid":"1130553149","full_name":"git-stunts/docker-guard","owner":"git-stunts","description":"Minimal guard that enforces Git Stunts tests/benchmarks Docker-only policy. Complete with banner, env detection, and test-friendly hooks.","archived":false,"fork":false,"pushed_at":"2026-01-08T18:32:42.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T22:34:44.523Z","etag":null,"topics":["dev-tools","docker","git","git-stunts","nodejs","npm-package","safety","security","testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/git-stunts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-08T17:06:51.000Z","updated_at":"2026-01-08T18:32:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/git-stunts/docker-guard","commit_stats":null,"previous_names":["git-stunts/docker-guard"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/git-stunts/docker-guard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-stunts%2Fdocker-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-stunts%2Fdocker-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-stunts%2Fdocker-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-stunts%2Fdocker-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/git-stunts","download_url":"https://codeload.github.com/git-stunts/docker-guard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-stunts%2Fdocker-guard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dev-tools","docker","git","git-stunts","nodejs","npm-package","safety","security","testing"],"created_at":"2026-01-08T20:05:40.077Z","updated_at":"2026-01-13T21:57:35.947Z","avatar_url":"https://github.com/git-stunts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @git-stunts/docker-guard\n\n[![npm version](https://img.shields.io/npm/v/@git-stunts/docker-guard.svg)](https://www.npmjs.com/package/@git-stunts/docker-guard)\n[![CI](https://github.com/git-stunts/plumbing/actions/workflows/ci.yml/badge.svg)](https://github.com/git-stunts/plumbing/actions/workflows/ci.yml)\n[![license](https://img.shields.io/npm/l/@git-stunts/plumbing.svg)](LICENSE)\n\nTiny guard that ensures tests and benchmarks only execute inside Docker. Each git-stunts package can import the guard, then call `ensureDocker()` before any runtime work begins.\n\n## Usage\n\n```javascript\nimport { ensureDocker } from '@git-stunts/docker-guard';\n\nensureDocker();\n```\n\nYou can also pass overrides for testing:\n\n```javascript\nimport { ensureDocker } from '@git-stunts/docker-guard';\n\nensureDocker({\n  env: { GIT_STUNTS_DOCKER: '1' },\n  logger: () =\u003e {},\n  exit: () =\u003e {}\n});\n```\n![20260108_0910_Image Generation_simple_compose_01kef9bb8je9rtrptm6nrapw19](https://github.com/user-attachments/assets/86d76e23-24f6-4672-a726-3489e1b1d479)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-stunts%2Fdocker-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgit-stunts%2Fdocker-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-stunts%2Fdocker-guard/lists"}